1

I'm quite new to addons development on Firefox.

I need to store an image from a given url, and then get the path to upload on another web. I read the Mozilla docs but can't figure how to do this.

I appreciate any help.

1 Answers1

0

This does exactly what you need: How to download image to desktop with OS.File - you download the image with XHR, you then write that data to anywhere you want with OS.File.writeAtomic Instead of that XHR function, because you are using the SDK you should use the request module - https://developer.mozilla.org/en-US/Add-ons/SDK/High-Level_APIs/request

Community
  • 1
  • 1
Noitidart
  • 35,443
  • 37
  • 154
  • 323