perminder-klair / yii2-dropzone

DropzoneJs Extention for Yii2
51 stars 27 forks source link

Disable autoDiscover #4

Closed niekoost closed 9 years ago

niekoost commented 9 years ago

When you don't have a form, the autoDiscover feature of DropZone creates a new instance of DropZone with option.url=null. This results in an Error thrown in dropzone.js on line 595, before the instantiation on line 68 of DropZone.php is executed. I have added Dropzone.autoDiscover = false; and moved the DropZoneAsset::register($view) down to make sure that disabling autoDiscover is being applied.

perminder-klair commented 9 years ago

Thanks again @niekoost I was wondering how to fix this error last night. Many thanks!