Skip to content
Advertisement

Tag: file-upload

MD5 hash of a file using javascript

I have to upload a file from the front end and calculate the md5 hash of the file. I tried to use crypto.js to generate the md5 but for images it is giving me wrong md5. I saw a website called onlinemd5.com and it is exactly what I need. Can anyone help me how to calculate the md5 hash of

How to convert Blob to File in JavaScript

I need to upload an image to NodeJS server to some directory. I am using connect-busboy node module for that. I had the dataURL of the image that I converted to blob using the following code: I need a way to convert the blob to a file to upload the image. Could somebody help me with it? Answer This function

FormData is empty when using jQuery ajax()

I try to submit form with file with jQuery.ajax. Google says I should use FormData which will automagically encode the file and all inputs into the one object which I can send via XHR. Well, the FormData object is empty. It’s empty in the debugger and on the server side. I can’t find the error. Here is the code. The

Advertisement