cancel
Showing results for 
Search instead for 
Did you mean: 

method file.getAsBinary works fine in Firefox3.6, but not Firefox8

SOLVED
Highlighted
New Contributor

method file.getAsBinary works fine in Firefox3.6, but not Firefox8

I use javascript method file.getAsBinary for file uploading. It works fine in firefox3.6, but it doesn't work in firefox8. Does anybody know how to solve this or any method to replace file.getAsBinary in firefox8?

1 ACCEPTED SOLUTION

Accepted Solutions
Legendary Contributor

Re: method file.getAsBinary works fine in Firefox3.6, but not Firefox8

That method was removed, as per this Bugzilla page: 661876 – Kill obsolete nsIDOMFile properties/methods. Apparently the FileReader (link to MDN) object is the new recommended way to read a file.

2 REPLIES
Legendary Contributor

Re: method file.getAsBinary works fine in Firefox3.6, but not Firefox8

That method was removed, as per this Bugzilla page: 661876 – Kill obsolete nsIDOMFile properties/methods. Apparently the FileReader (link to MDN) object is the new recommended way to read a file.

New Contributor

Re: method file.getAsBinary works fine in Firefox3.6, but not Firefox8

Thanks!