Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Accept option to clipper-upload component #1

Closed
adriano-tirloni opened this issue Feb 19, 2019 · 2 comments
Closed

Add Accept option to clipper-upload component #1

adriano-tirloni opened this issue Feb 19, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@adriano-tirloni
Copy link

adriano-tirloni commented Feb 19, 2019

Hi,

file: clipper-upload.vue

Adding a prop accept like so:
<input type="file" class="upload" @input="upload($event)" @click="clear($event)" :accept="accept" style="display:none">

props: { value: { type: String, default: '' }, accept: { type: String, default: '*' }, check: { type: Boolean, default: true } },
Would allow mobile devices to change input dialog. I use "image/jpeg,image/png" which brings last used images, gallery and camera access.

@timtnleeProject timtnleeProject added the help wanted Extra attention is needed label Feb 20, 2019
@timtnleeProject
Copy link
Owner

Hi, @dritir
can you describe more about what you want to achieve?

I don't understant what are
"allow mobile devices to change input dialog" and
"brings last used images, gallery and camera access"

Thanks!

@adriano-tirloni
Copy link
Author

adriano-tirloni commented Feb 20, 2019

Sure, open this sandbox on your android.
https://p9j2zw87qj.codesandbox.io/

heres the code: https://codesandbox.io/s/p9j2zw87qj
First input selects camera and photo related stuff.
Second input asks for many apps, because it accepts .pdf for example.

@timtnleeProject timtnleeProject added enhancement New feature or request and removed help wanted Extra attention is needed labels Feb 21, 2019
timtnleeProject added a commit that referenced this issue Feb 21, 2019
Add `accept` prop to clipper-upload
refer to issue #1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants