Topic: Chrome and HTML5

The most recent version of Chrome seems to break the HTML5 runtime. It now throws the exception "Object #<a File> has no method 'getAsBinary'" when an upload attempt is made. Below is a quick fix that worked for me until an official fix is implemented.

Replace instances of:

sendBinaryBlob(nativeFile.getAsBinary());

with:

var reader = new FileReader();
reader.onload = function(e) {sendBinaryBlob(e.target.result)}
reader.readAsBinaryString(nativeFile);

2 (edited by Romey-Rome 2011-02-07 00:06:37)

Re: Chrome and HTML5

Thanks...

But in which file? I can't seem to find any instance ofsendBinaryBlob(nativeFile.getAsBinary()).


EDIT:
Nevermind. Found it. I was looking in the min. files initially...

Re: Chrome and HTML5

Accepted pull request on github, fixing this issue.

If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: Chrome and HTML5

Thanks for the fix scobei...that is very useful info and does take care of the problem...once again....Thanks

Re: Chrome and HTML5

@martha997 HTML5 is partly supported across number of new browsers and we use it to upload files where possible.

If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: Chrome and HTML5

Was this ever fixed ?

Re: Chrome and HTML5

Yes, but it hasn't been released just yet. You can always get the latest source from github.

If you want to see your issue fixed, do not report it here, do it on - GitHub.

8 (edited by marcamillion 2011-02-12 21:55:50)

Re: Chrome and HTML5

Will the latest release include this fix ?

Also, my main issue right now is that Plupload doesn't work at all on Chrome on OS X. When I press 'add files', nothing happens. I actually just tested it in Safari on OS X and it doesn't work either. However, dragging and dropping on Safari does work.

Drag & drop in Chrome gives me this html5 runtime error.

Will all of this be fixed in the latest source ?

Oh, and also once the files have been upload on Safari on OSX, there is no 'done/finish' button. It just stays on the screen and tells me the number of files uploaded and the sizes. However, when I close that box, it shows that the images have been uploaded successfully.

Re: Chrome and HTML5

I'm using latest source in my test on all browsers and do not get any errors, so I guess mentioned bugs are indeed fixed.

As to your second problem - Flash player on Mac is known to not fire progress and complete events if no output is echoed from the server-side script. So usually printing somethings as simple as '1' at the end of the script, may solve it. Also check this thread for similar issue.

If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: Chrome and HTML5

This is really important since Chrome has become very popular

Re: Chrome and HTML5

Next minor release will come out by the end of the week.

If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: Chrome and HTML5

Any update on this minor release and the fix ?

Re: Chrome and HTML5

Yes, release will come out today.

If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: Chrome and HTML5

Hi davit,

When will the release come out ? This bug affects some of our services in production.

Best regards

Re: Chrome and HTML5

i grab the latest source from git, but the problem still exist.  anyone else experience this?

Re: Chrome and HTML5

@travaller, do you experience the following problem:

It now throws the exception "Object #<a File> has no method 'getAsBinary'"

or something else?

If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: Chrome and HTML5

@davit,  it was due to cache. it works perfectly. thank you

Re: Chrome and HTML5

Got here from Google, same issue for me - cleared the cache and voila!

Love forums.