mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2026-02-03 06:03:25 +00:00
File overwritten when multiple files with same name uploaded via POST #123
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @anihm136 on GitHub.
When multiple files of the same name are uploaded via POST method, transfer.sh overwrites all of them with the last uploaded file. This happens because all the files uploaded in a single POST request get a single UID in the URL, and are named based on the upload name.
How to replicate:
a/foo.txtandb/foo.txtin a single POST requestExpected outcome:
The two uploaded files are different
Actual outcome:
The uploaded files are the same, with one overwriting the other
Possible solutions:
@anihm136 commented on GitHub:
Sure, will do. Might take some time depending on my schedule, so do let me know if anyone else wants to take it up in the meantime.
@paolafrancesca commented on GitHub:
thanks @anihm136
since you are already working on the POST handler do you mind implementing solution 1? :)
thanks