I built a cool little app called PirateFox that knits together my two digital distractions of the moment, Firefox OS and PirateBox.

The app has a simple function: to share images, audio and video from a mobile phone to a nearby PirateBox. Firefox OS has an API called Web Activities than make this relatively easy to implement; it looks like this when it’s in action:

That’s a screen shot of my Firefox OS phone’s gallery app: I tap on the “share” icon and up pops a menu of sharing options, including, once my app is installed, “PirateFox.”  I tap PirateFox and the image gets automagically sent to the PirateBox I’m connected to.

You can grab the source for PirateFox and install it on your Firefox OS phone; if you don’t have a Firefox OS phone, you might look at the code anyway as an example of how to upload a file through a handcrafted XMLHttpRequest of multipart/form-data, something that works around an issue with the current version of Firefox OS that’s eventually going to be fixed.

Peter Rukavina

Add new comment

The content of this field is kept private and will not be shown publicly.

Plain text

  • Allowed HTML tags: <b> <i> <em> <strong> <blockquote> <code> <ul> <ol> <li>
  • Lines and paragraphs break automatically.

About This Blog

Photo of Peter RukavinaI am . I am a writer, letterpress printer, and a curious person.

To learn more about me, read my /now, look at my bio, listen to audio I’ve posted, read presentations and speeches I’ve written, see things I’ve favourited elsewhere, or get in touch (peter@rukavina.net is the quickest way).

I have been writing here since May 1999: you can explore the 25+ years of blog posts in the archive.

You can subscribe to an RSS feed of posts, an RSS feed of comments, an RSS feed of favourites elsewhere, or a podcast RSS feed that just contains audio posts. You can also receive a daily digests of posts by email. I also publish an OPML blogroll.

InstagramYouTubeVimeoORCIDOpenStreetMapInternet ArchivePEI.artDrupalGithub.