Last modified: 2014-02-12 23:45:52 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T34286, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32286 - MobileFrontend should support image uploads
MobileFrontend should support image uploads
Status: RESOLVED INVALID
Product: MobileFrontend
Classification: Unclassified
Feature requests (Other open bugs)
unspecified
All All
: Unprioritized enhancement
: ---
Assigned To: Nobody - You can work on this!
:
Depends on: 24387
Blocks:
  Show dependency treegraph
 
Reported: 2011-11-08 21:12 UTC by Tomasz Finc
Modified: 2014-02-12 23:45 UTC (History)
9 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Tomasz Finc 2011-11-08 21:12:57 UTC
MobileFrontend should natively support photo uploads. Corresponding bugs that don't directly block but are linked to this are

https://bugzilla.wikimedia.org/show_bug.cgi?id=31979 - Photo upload in mobile app using PhoneGap's Camera interface

https://bugzilla.wikimedia.org/show_bug.cgi?id=31978 - Support upload via HTML5 media capture API
Comment 1 Brion Vibber 2011-11-08 22:50:45 UTC
Notes on device compatibility:

How to test:
* log in and go to Special:Upload on a wiki in the device's browser (the full UI, not the mobilefrontend!)
* check whether the upload selector (<input type="file">) is grayed out or functional
* check to confirm you can get to camera / photo gallery and select an item
* check if a thumbnail is displayed after selecting (if so, you have FileAPI and will support chunked/restartable uploads)

We don't currently have any support for the more advanced HTML Media Capture facilities (bug 31978) so there's not a handy test for them.


Firefox:
* Firefox 8 on Android: A+
** supports photo picker, music track, and sound recorder for <input type="file"> (can get to Camera via Gallery).
** includes full FileAPI

Android stock Browser:
* Android <= 2.2: unknown?

* Android 2.3.6: B
** <input type="file"> supports Gallery etc like Firefox does.
** Does not appear to include FileAPI support -- must upload in one POST through the form.

* Android 3.0, 4.0 - untested, but theoretical A+
** claims to support HTML Media Capture (bug 31978) which is a superset of <input type="file"> and FileAPI
** FileAPI for chunked uploads *should* work
** may or may not be able to do video capture directly

Safari:
* Safari iOS 4.3, 5: F
** no <input type="file"> support at all as of iOS 5. (Appears as grayed out.)

Opera Mobile:
* 11.50 on Android 2.3.6: C
** <input type="file"> works, but shows a low-level file picker on /mnt/sdcard. Very bad UI! You can select files from your camera gallery but need to know the filename.
** supports FileAPI, can show thumbnails

PhoneGap extends direct camera support for apps built using it, so the app for iOS should be able to upload by using that interface and feeding data into the upload API.
Comment 2 Phil Chang 2012-04-03 18:05:35 UTC
Thanks, Brion, what a great list. Just to be clear, does PhoneGap allow file selection from the native gallery as well as camera support?
Comment 3 Brion Vibber 2012-09-17 18:04:52 UTC
Update: iOS 6 is coming out soon and adds <input type="file"> and FileAPI support in the browser. Special:Upload and UploadWizard work in desktop view.

Opera Mini on iOS also seems to allow file uploads, using the image gallery picker. No FileAPI support there that I can see (very limited JS in Opera Mini).
Comment 4 Jon 2012-09-19 17:18:08 UTC
I'm a bit confused about how this fits in to the big picture. Sure we want uploads and can on certain browsers but the user needs a path to upload. Is this a link to an upload page or is this more focused - e.g. a button saying 'add photo here' or 'add attachment'

 We probably want to tackle this as part of an effort to upload photos into articles? Can someone create a story which captures a use case for this in mingle? Thanks.
Comment 5 Tomasz Finc 2012-09-21 01:59:06 UTC
I'll take the this since it was my original bug https://mingle.corp.wikimedia.org/projects/mobile/cards/169

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links