Mercurial > prosody-modules
comparison mod_http_upload_external/mod_http_upload_external.lua @ 3165:7af4776a5dea
mod_http_upload_external: Log file type and size
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 02 Jul 2018 12:56:51 +0100 |
parents | ac99a04231b1 |
children | 44a187c82b53 |
comparison
equal
deleted
inserted
replaced
3164:5176b8d81ec7 | 3165:7af4776a5dea |
---|---|
81 end | 81 end |
82 local random = uuid(); | 82 local random = uuid(); |
83 local get_url, verify = magic_crypto_dust(random, filename, filesize, filetype); | 83 local get_url, verify = magic_crypto_dust(random, filename, filesize, filetype); |
84 local put_url = get_url .. verify; | 84 local put_url = get_url .. verify; |
85 | 85 |
86 module:log("info", "Handing out upload slot %s to %s@%s", get_url, origin.username, origin.host); | 86 module:log("info", "Handing out upload slot %s to %s@%s [%d %s]", get_url, origin.username, origin.host, filesize, filetype); |
87 | 87 |
88 return get_url, put_url; | 88 return get_url, put_url; |
89 end | 89 end |
90 | 90 |
91 -- hooks | 91 -- hooks |