2

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

Zerotoinfinity
  • 6,290
  • 32
  • 130
  • 206

2 Answers2

4

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.

broofa
  • 37,461
  • 11
  • 73
  • 73
toytoy
  • 1,223
  • 1
  • 12
  • 14
2

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.

buley
  • 28,032
  • 17
  • 85
  • 106
  • 1
    iOS 6 will support html5 file uploads and access to the device's camera. http://www.mobilexweb.com/blog/ios-6-beta-1-html5-native – threejeez Sep 09 '12 at 16:39
  • What a helpful answer. Why everybody doesnt answer questions like this? Just google it!:D – miky Oct 07 '14 at 12:30