Search code examples
angularjsfile-uploadjquery-file-upload

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


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)
})

Solution

  • 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.