This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How do I write a file to the SD card from a mozilla plug-in or extension?

  • 2 replies
  • 4 have this problem
  • 1 view
  • Last reply by johns4ta

more options

Is it possible to write a file to external storage on an Android device from a browser plug-in or extension?

Is it possible to write a file to external storage on an Android device from a browser plug-in or extension?

All Replies (2)

more options

Just to clarify, I don't want to change the default download location, I just want to be able to write to a text file on the SD card/external storage.

more options

I found the answer here https://developer.mozilla.org/en-US/Add-ons/SDK/Low-Level_APIs/io_text-streams. I just set the write location to "/mnt/sdcard"