ondemand icon indicating copy to clipboard operation
ondemand copied to clipboard

Upload same filename replaces file

Open johrstrom opened this issue 2 years ago • 3 comments

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

johrstrom avatar Jun 22 '22 13:06 johrstrom

Related to #281/#2094

lukew3 avatar Jun 22 '22 14:06 lukew3

Does #2094 also fix this? or is it just related?

johrstrom avatar Jun 22 '22 15:06 johrstrom

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

lukew3 avatar Jun 22 '22 15:06 lukew3