Skip to content
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.

Proper way to add "accept" parameter to allow IOS camera access #729

Closed
droplab opened this issue Mar 7, 2013 · 3 comments
Closed

Proper way to add "accept" parameter to allow IOS camera access #729

droplab opened this issue Mar 7, 2013 · 3 comments

Comments

@droplab
Copy link

droplab commented Mar 7, 2013

Wanting to know if there's a non-hack way to do this. The desired output being:

<input type="file" accept="image/*;capture=camera" />

Thanks!

@rnicholus
Copy link
Member

I can't say for sure as I haven't looked into this yet. Please see case #389 .

@droplab
Copy link
Author

droplab commented Mar 7, 2013

Actually, I figured it out. You can make this work by using the "acceptFiles" property in the validation options. I simply added "image/*;".

https://github.com/valums/file-uploader/blob/master/docs/options-fineuploaderbasic.md#validation-option-properties

@rnicholus
Copy link
Member

Yep, that seems about right. I simply haven't spent time diving into camera access. I'm going to close this case. Let me know if you want it open for some reason.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants