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 <rid...@gmail.com> 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
>
> www.xam-consulting.com
>
> Blog: www.michaelridland.com
>
>
>
> On Thu, Oct 22, 2015 at 10:24 AM, Craig van Nieuwkerk <crai...@gmail.com>
> 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 <gfke...@gmail.com> 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*
>>>
>>
>>
>

Reply via email to