HTML5 web app to upload images to server

8.7k views Asked by At

Is it possible to create an HTML5 application/website for mobile(android, Iphones, IPad) which will allow user to upload pictures from their mobile to server?

I am not looking for pure app, it could be a website hosted on any server.

Though, I am looking for my ASP.NET application but I believe that if I get solution for HTML, that would also be fine because I heard that mobile safari doesn't support upload in IPhone

2

There are 2 answers

2
buley On BEST ANSWER

There is such a thing as an HTML5 File API, but, no, this is not possible on most mobile devices (and not possible in some desktop environments, including IE, either).

Android allows this in the most recent iteration (3.0), but the Safari browser in iOS doesn't have access to any filesystem from which to pull assets. For example, consider that you can't even add an image to an email except from the Camera/Library application itself.

Check out caniuse.com for a full picture of compatibility.

2
toytoy On

iOS 6 supports uploading a file if it's implemented using HTML 5.

Just add the usual <input type="file" /> tag to your form. When user's click this they'll be prompted to either select an existing photo or take a new photo with the camera.