Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
86
rated 0 times [  87] [ 1]  / answers: 1 / hits: 20903  / 12 Years ago, fri, january 25, 2013, 12:00:00

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?


More From » html

 Answers
22

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]);

[#80619] Thursday, January 24, 2013, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
loganl

Total Points: 424
Total Questions: 86
Total Answers: 112

Location: Zimbabwe
Member since Thu, Jul 21, 2022
2 Years ago
;