This thread was closed.
Please ask a new question if you need help.
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?
Chosen solution
by jscher2000That 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 2Additional 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
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!
