nervgh/angular-file-upload

How to set uploader attr dynamically in div

Opened this issue · 0 comments

I need to create n boxes using n instances of file uploader dynamically.
According to the documentation we need set the uploader attribute using an instance of Angular File Uploader.

The attribute uploader must be a instance of FileUploader.

I created an selector with jquery and changed the attribute of this div adding an instance of File Uploader, but not worked.
Just like this:

var currentDiv = $('.my-file-uploader-div');
var myFileUploaderInstance = new FileUploader();
$(currentDiv).attr('uploader', myFileUploaderInstance );

Unfortunately not worked