Thanks. So the chrome-only constructor was removed. Is there an alternative way to create a File object from a path?

在 2016/11/23 14:04, Kris Maglione 写道:
See https://bugzil.la/1303518

On Wed, Nov 23, 2016 at 01:48:43PM +0800, 段垚 wrote:
Hi,

In Firefox 51 chrome code, this code works: `new File(path_to_file)` , if `path_to_file` exists.

However in Firefox 52a (2016-11-22),an execption is thrown: "TypeError: Not enough arguments to File".

I don't see a deprecation or removing note in the dev-doc[1], what's the problem?

Thanks.


[1] https://developer.mozilla.org/en-US/docs/Extensions/Using_the_DOM_File_API_in_chrome_code
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to