How do I declare dropZone element in AngularJS version of File Upload?

642 views Asked by At

Using AngularJS version of File Upload (https://blueimp.github.io/jQuery-File-Upload/angularjs.html) I'm trying to figure out how I can declare dropZone via HTML attributes - an equivalent of:

$(el).fileupload({
  dropZone: $('.dropZone', this)
})
1

There are 1 answers

3
avcajaraville On BEST ANSWER

On their wiki section they list an angular directive as a fork.

If you go to their usage section on their github repository, you will see that they had created a directive you can use this way:

<ng-upload-form url="//jquery-file-upload.appspot.com/" auto-upload="true" size-limit="500000"></ng-upload-form>

I think that should help you.