Last modified: 2014-02-12 23:46:09 UTC
<input type="file"> is unsupported on Firefox OS 1.0, so the existing file upload widgets on MF don't work and we disable file upload. However, web activities (via 'MozActivity' class) are supported for web content, so it should be possible to request an image from the photo gallery that way and get a blob back. This is lowish priority but I may see if I can make it work just for fun. :)
Upstream bug for implementing <input type="file">: https://bugzilla.mozilla.org/show_bug.cgi?id=832923 Experimental branch using MozActivity picker: https://github.com/brion/MobileFrontend/commits/mozactivity
Fixed the main bugs in the experimental branch, submitting for review/merge: https://gerrit.wikimedia.org/r/51287
Good news: Mozilla devs appear to be actively working on fixing this on their end <https://bugzilla.mozilla.org/show_bug.cgi?id=832923>, so we shouldn't need the workaround. I'm keeping this bug open until it's resolved upstream though. :)
Can confirm this is fixed on Firefox OS 1.1 beta build 20130328070204. Closing out. :D https://commons.wikimedia.org/wiki/File:Ubuntu_phone_on_Galaxy_Nexus_2013-04-01_11-29.jpeg