airlift icon indicating copy to clipboard operation
airlift copied to clipboard

upload same file two times, it will save two times, that's a bug, no matter how many times we upload, it should save once!

Open brownchow opened this issue 3 years ago • 1 comments

I upload a file two time, it save the file two time with different hash prefix, that's a bug! image

I think, before we upload a file, we should calculate the SHA1 or MD5 sum of the file, and then check if the file have uploaded alerady, if true, just return the same link, else generate a new link

brownchow avatar Nov 09 '20 15:11 brownchow

The expected behavior you describe used to be the default behavior, but I changed it due to a user request long long ago. I may consider reverting if I can dig up why I changed it in the first place.

moshee avatar Mar 21 '21 23:03 moshee