X
Tap here to go to the mobile version of the site.
Your Firefox is out of date and may contain a security risk! Upgrade Firefox

Support Forum

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

Posted

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?

Chosen solution

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.

Read this answer in context 2

Additional System Details

Installed Plug-ins

  • Cssweb HardInfo
  • Cssweb
  • Default Plug-in
  • Adobe PDF Plug-In For Firefox and Netscape "9.5.0"
  • 4.0.50401.0

Application

  • User Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-CN; rv:1.9.2.23) Gecko/20110920 Firefox/3.6.23

More Information

jscher2000
  • Top 10 Contributor
2349 solutions 20824 answers

Chosen Solution

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.

Question owner

Thanks!