NRGI / rgi-assessment-tool

MEAN build of RGI 2015 assessment tool
MIT License
5 stars 1 forks source link

Compute checksum of user uploaded files before upload and compare with checksum on server #569

Closed iprunache closed 7 years ago

iprunache commented 7 years ago

Why

As a result of the current upload process some files end up corrupted in the site storage and some of those are truncated files. We can't tell if the user uploads a truncated file or if the file gets truncated during the upload.

One way of reducing the number of truncated files is to ensure that what the user selects for upload ends up whole on the server by checking the checksum of the file before upload with the checksum of the file on the server after upload.

What

Notes

This site is a good example on how to compute a file checksum from the client side: http://onlinemd5.com/

alexander-elgin commented 7 years ago

c16a3d7a6ff2ab907aa3f879d96f00b1e80bca8f