WinForms / C#
My application allows the user to specify 1) additional information for 2) a given file, both of which are uploaded to the server. There are two isolated uploads: first the file, and (maybe much) later the metadata.
Please assume the file to be always unchanged and available (to the code).
When the metadata is uploaded, I need to ensure it is associated with its given file without again uploading that file (they're big files).
My plan is to use an MD5 hash of the following three attributes of the file:
- contents
- size
- created date
The hash will accompany both the file and the metadata in their respective uploads (and eventual persistence).
What smarter solution am I overlooking?