Using the main fine-uploader and addFile to insert a blob based element. Everything goes fine until the server rejects the request due to "security issues." If I convert blob to a file and send it to thin download, the server is quite happy. The only difference between the two requests is the file name in the request header.
The uploader file setName () does not seem to change to the name "blob".
Fails: Content-Disposition: form-data; name = "qqfile"; file name = "blot" Content-Type: image / jpeg
Any way to replace 'filename = "blob"' with a name that contains the correct extension - blob.jpg, blob.gif, etc.
var myblob = new Blob([outputBuffer], {type: "image/jpeg"});
myblob.name = ofile;
var myfile = new File([myblob], 'ImageTest.jpg', {
lastModified: new Date(0),
type: "image/jpeg"
});
fineUploader.addFiles({blob:myblob, name:ofile});
console.log(fineUploader.getName(0));
fineUploader.setName(0,ofile);
console.log(fineUploader.getName(0));
fineUploader.addFiles(myfile);