Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add file via button using Dropzone plugin

Tags:

dropzone.js

Is it possible to use an external button to add file using Dropzone plugin? I found this documentation but it doesn't answer my question.Indeed, I can't be able to add file using an handler event such as click. Is there a solution?

like image 555
Radonirina Maminiaina Avatar asked Dec 26 '22 09:12

Radonirina Maminiaina


1 Answers

I guess you want your button to have the clickable option, isn't it? If so you should configure your Dropzone for this like that:

Dropzone.options.validationForm = {
  clickable: "#your_button_id",
  //rest of your code
}

If it isn't the answer you're looking for maybe you could try explain better what you want or put a snippet of your code :)

like image 102
amandasantanati Avatar answered Apr 28 '23 03:04

amandasantanati