I am trying to use filepicker.js to only allow images/pdf to be uploaded How do i do that please help
<input type="filepicker-dragdrop"/>
<script type="text/javascript">
filepicker.setKey('AqaKfUG8HTrO7EehqYXZUz');
</script>
This is the fiddle link
{mimetypes: ['image/*', 'application/pdf']}
or
使用data-fp-mimetypes属性
<input data-fp-mimetypes="image/*" type="filepicker-dragdrop" >
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.