Skip to content

Add Accept option to clipper-upload component #1

Closed
@adriano-tirloni

Description

@adriano-tirloni

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions