amahi / amahi-anywhere-fs

Amahi Anywhere file server
GNU General Public License v3.0
12 stars 10 forks source link

[BUG] upload an existing file(name of this file already exists in server) #17

Closed phoon closed 5 years ago

phoon commented 5 years ago

I think we should calculate each files's md5 when we upload it, if the files exists and md5 is the same, we don‘t do anything, but if the file name exists but md5 is diffirent, we should rename the currently uploaded file.

phoon commented 5 years ago

Or simply prefix the filename with a random string if the uploaded filename is already exists.