Dynamicus Dynamicus - 10 months ago 44
Android Question

Does the android web browser allow uploading photos just taken from camera?

One of the crucial requirements in the application I am writing is that user being able to upload (input type="file") a photo from within a form.

Does the android web browser support File Uploads? If yes do all versions 1.5+ support it?

Answer Source

Yes and no. Some people seem to have problems doing so (as outlined in the comments). Although it worked for all my devices, it's entirely possible that a different browser might not at all implement this feature.

The user can however not upload any file on the SD Card, but Audio-, Video- and Image-Files that are on the internal/external storage. The kind of files you can upload depend on the installed applications. If you have a File-Manager installed (or shipped with the OS), you can also use it to upload any file you want (Gallery and Mediaplayer should always be present).

When the upload-button of a <input type="file"> is pressed, browsers seem to send the Intent.ACTION_GET_CONTENT-Intent, so every application listening to this is a possible file-source.