Hello guys,

right now, there is no file picker implemented in FirefoxOS. That means
that every form relying on an <input type="file"/> is broken. I didn't
find information on how this is going to be solved.

In Firefox on Android, it seems that the input is calling an Intent (I
don't know to much about android).
What about making the input calling the pick activity on Firefox OS?
I think a lot of file input are used for images (facebook, twitpic,
foursquare, etc.). As there is already the Gallery & Camera app for
image, a lot of form would work with that. And the input accept
attribute when present would be used to filter the activity handlers (as
already possible with the activities filters)
And new apps (gps tracking => gpx, office suite => .doc, etc.) could
provide other file types easily. Maybe the email app could be allow
access the email attachment. A Dropbox (or MEGA) app could handle pick
intent too.

What to you think about it?


this was about use case when you need a file to complete your goal. Now
I'd like to ask you if there is something about Activities that could
help me if I'm starting with the file. for example, I received an email
with an attachment (pdf, doc, image, gpx, epub, etc.) what can I do
about with it? Can I start an activity without a name? What I mean is,
the email app cannot know every activity available for a file. What
would be interesting would be a way to say, let the user choose from
list of activities that handle <file-type> which activity he want to
start. here I suppose that every activity handling file accept a Blob
and tell in the manifest which file types are accepted ("filters":
{"type": ["image/jpeg", "image/png"]} or "filters": ["*"], etc.)


have a good day,

--
Mathieu Rochette
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to