Upload file and hash

0
0

Hi.

Is it possibile to calculate and send the hash of the file on the client to avoid uploading something that already exists.

I’m using upload control.

Thank you

  • You must to post comments
0
0

Hi Davide,

Implementing such a feature would be rather hard in a browser.

You can theoretically use the ClientFileSystem extension to make it easier and have the browser load files from your client’s File System.

But, everything would be handeled on the Server side, that means that everything would be uploaded regardless and you’ll have to compare your hash checksums on the server.

That would be expensive in terms of resources.

You can also try to use javascript for the Client side operations, but that would require calculating the Checksum as chunks otherwise the browser would crash if the file is too big.

If you need additional help with this issue, you can check out our Professional Service Packages!

HTH,
Alaa

//

  • Davide Mercanti
    I was wondering if the upload control could expose an event, before the upload where, in addition to showing the type and name of the files, it could calculate the hash (like here https://lvaccaro.github.io/hashfilereader/) obviously on request. On my 80Mb pc it takes about 8 seconds.
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.