Add request time to generated by mod_http_upload external_secret
@weiss is already working on this.
Since Mar 24, 2020.
Assessment
This issue has not been assessed yet.
Description
Is your feature request related to a problem? Please describe.
I want to use mod_http_upload option external_secret with an self-written php script. https://xmpp.org/extensions/xep-0363.html#impl suggests to implement a timeout for the validity of the PUT URL. For this, the server (php script) has to know the time of the XMPP request for the upload slots.
Describe the solution you'd like
I suggest to extend the currently used URL format to include the unix timestamp in the PUT URL path:
<configured_put_url>/<SHA-1(JID)>/<random>/<timestamp>/<filename>
As far as I understood the Prosody decumentation ( https://modules.prosody.im/mod_http_upload_external.html ), the path format isn't specified. So the addition of another field shouldn't break compatibility (at least if no script expects the filename at a certain index but as the last path element, see #3188)
- Dominant language
- Erlang
- Stars
- 6.7k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from processone/ejabberd
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
processone/ejabberd#4597 ·
-
API permissions Open
processone/ejabberd#4619 · 3 comments · 1 assignee ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
processone/ejabberd#4616 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
processone/ejabberd#4614 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
processone/ejabberd#4613 · 1 comment ·