Mr-Malik-Aryan / Fish-itFrontend

https://fish-it.vercel.app
MIT License
1 stars 1 forks source link

Duplicate Upload Error(With same filename and password) #4

Open iamjineshmodi opened 2 days ago

iamjineshmodi commented 2 days ago

If either FIlename or password is different, then the new file gets uploaded

But, when we have the same FileName and Password as some previous existing one, then the new file does not get uploaded, and the previous file comes when we download.
This will cause Duplicate errors if someone tries to save a file with same Filename and password that some other user has aldredy saved with

Mr-Malik-Aryan commented 2 days ago

Your suggestion on how to handle this ?

iamjineshmodi commented 2 days ago

Maybe, check if the current hash of (filename+password) is aldredy made, then tell user some error in uploading and upload with a different unique file name