Creating a file from a blob
问题 I'm in need of some javascript guru. I have this code: handleImage(new File([blob], blob.name, {type: blob.type})).done(/* something */) and handleImage = function (image) { // create some fake form data var formData = new FormData(); formData.append("attachment", image); formData.append("auto", true); formData.append("_csrf", "xxxxxxxxx"); // post to the server. return $.ajax({ url: "/some/url", data: formData, cache: false, contentType: false, processData: false, type: 'POST', error: