ondemand
ondemand copied to clipboard
Upload same filename replaces file
When you upload a file that shares the same name of a file that already exists - we currently replace it. Instead, we should do what Web browsers and curl, wget and likely others all do, append numbers to the filenname like so:
foo.txt
foo_1.txt
# this tends to be strange/bad in Linux, so I'm tempted to just use underscore `_N`.
foo (1).txt
┆Issue is synchronized with this Asana task by Unito
Related to #281/#2094
Does #2094 also fix this? or is it just related?
Does #2094 also fix this? or is it just related?
Just related. The code to generate a new filename is written in #2094 but would have to be applied to this context