Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. Mozilla ніколи не просить вас зателефонувати, надіслати номер телефону у повідомленні або поділитися з кимось особистими даними. Будь ласка, повідомте про підозрілі дії за допомогою меню “Повідомити про зловживання”

Learn More

Ця тема перенесена в архів. Якщо вам потрібна допомога, запитайте.

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

  • 2 відповіді
  • 3 мають цю проблему
  • 3 перегляди
  • Остання відповідь від yffqcy

more options

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?

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?

Обране рішення

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

Усі відповіді (2)

more options

Вибране рішення

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.