Topic: Drag and drop file upload

mbrown664 free asked 5 years ago


Can the Drag and drop file upload be configured for multiple files? How do you restrict the extensions allowed?

Thanks,

Mike


Anna Morawska staff answered 5 years ago


1) Right now, we don't have plans to add multiple file support to the plugin. 2) No, separate extension using white space

Best, Ania


newtech2018 pro commented 5 years ago

I'd like to see multiple file support. I just purchased the plugin and it will not work for my needs because I need muli-file support.


MDBootstrap staff commented 5 years ago

To achieve that you would have to create two inputs. We don't support this type of usage with this component. Full specification of this plugin is described on its documentation page.

Best Regards, Piotr


mbrown664 free answered 5 years ago


Is a multiple file upload in consideration?

Is the data-allowed-file-extensions comma separated?


Anna Morawska staff answered 5 years ago


Hi there,

Regarding the first question - no, you can pass only a single file to the input. To restrict extension allowed you have to add 'data-allowed-file-extensions' attribute to the input element. An example is shown below:

<input type="file" id="input-file-now-custom-1" data-allowed-file-extensions="txt" class="mdb_upload"  />


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.6.1
  • Device: PC
  • Browser: Firefox
  • OS: Windows 7
  • Provided sample code: No
  • Provided link: No
Tags