Closed phoon closed 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.
Or simply prefix the filename with a random string if the uploaded filename is already exists.
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.