Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

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.