Based in this article http://cloudevils.wordpress.com/2012/10/18/ajax-file-upload-without-post-using-html5/ I created a form to upload files. Initially works fine in chrome but now is not workin more. In FF work fine. I made some debugs and this line
var bb = new (window.MozBlobBuilder || window.WebKitBlobBuilder || window.BlobBuilder)();
seems stop working in chrome. Browsering around I find some info about BlobBuilder() function that is not supported more in chrome.
Can help me?
It's gone or deprecated. Use the new Blob constructor.
Read: http://updates.html5rocks.com/2012/06/Don-t-Build-Blobs-Construct-Them
In your tutorial instead of:
var bb = new (window.MozBlobBuilder || window.WebKitBlobBuilder || window.BlobBuilder)();
bb.append(data);
var blob = bb.getBlob();
Do:
var blob = new Blob([data]);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With