I think there are techniques to perform client size resizing before posting it back to the server.
I have not done this myself but found this https://github.com/gokercebeci/canvasResize. Regards Adrian Halid From: [email protected] [mailto:[email protected]] On Behalf Of Craig van Nieuwkerk Sent: Thursday, 22 October 2015 8:06 AM To: ozDotNet <[email protected]> Subject: Re: Mobile device photos You need to post it back first. There is no way to access via Javascript. Craig On Thu, Oct 22, 2015 at 10:58 AM, Michael Ridland <[email protected] <mailto:[email protected]> > wrote: Just a quick question, can you get access to the image before you post it back or do you need to post it back first? THanks Michael Ridland | Technical Director | Xamarin MVP XAM Consulting - Mobile Technology Specialists <http://www.xam-consulting.com/> www.xam-consulting.com Blog: www.michaelridland.com <http://www.michaelridland.com> On Thu, Oct 22, 2015 at 10:24 AM, Craig van Nieuwkerk <[email protected] <mailto:[email protected]> > wrote: Basically all it does it bring up the camera where you can take a photo. Then when you do a form POST it will be submitted like a normal input[type=file]. It even displays a little preview of the photo next to the input. Open this on your phone https://jsfiddle.net/wkwq6kLz/ Craig On Thu, Oct 22, 2015 at 10:12 AM, Greg Keogh <[email protected] <mailto:[email protected]> > wrote: I have done this before. <input type="file" id="File" name="File" accept="image/*;capture=camera"> This will basically work like a standard file upload input but will use the camera to select the file. Goog grief! That's like black magic. So you click the button rendered next to the <input> control and what happens? In my case it looks like the initial devices in the field will be iPads. I'll read up on the expanded <input> element and make a test page and try it on the weekend. Greg
