You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.
Currently the Web API creates a hash of an uploaded file, then compares that hash to already-present files, and rejects duplicates.
The idea is that this will prevent users from inadvertently adding the same file multiple times, and help them realize when files that might have different names are actually the same file. (Having confused myself with this mistake when using the parser at the command line is what prompted this feature idea.)
Decide whether or not this is actually a good idea.
If it is, change hashing from MD5 to SHA256/512 per CM's suggestion.
If it is, make the hash key the primary key for the relevant database table.
If it isn't, remove the feature.
The text was updated successfully, but these errors were encountered:
Currently the Web API creates a hash of an uploaded file, then compares that hash to already-present files, and rejects duplicates.
The idea is that this will prevent users from inadvertently adding the same file multiple times, and help them realize when files that might have different names are actually the same file. (Having confused myself with this mistake when using the parser at the command line is what prompted this feature idea.)
The text was updated successfully, but these errors were encountered: