

ParamName: 'pdf', // this is optional Like this one will get accessed in php by writing $_FILE // if you dont specify it then by default it taked 'file' as paramName eg: $_FILE

url does not has to be written if we have wrote action in the form tag but i have mentioned here just for convenience sakeĪutoProcessQueue: false, // this is important as you dont want form to be submitted unless you have clicked the submit button In the myDropzone.js file I have configured the div#pdfFile this way : toDiscover = false This.I include dropzone.js library like this :
If you want to allow user to upload one file at a time only, then you can use Dropzon JS "MaxFiles" attribute in Configuration as shown below For implementing it you only need to add the dropzone library and add dropzone class to