jQuery File Uploader: https://github.com/blueimp/jQuery-File-Upload
I’m using the plugin above. How in jQuery can I check to see if the fileUpload has already been applied?
I get the following error now:
Uncaught FileUpload with namespace "file_upload" already assigned to this element
jQuery.jQuery.extend._Deferred.deferred.resolveWithjquery-1.5.1.js:869
donejquery-1.5.1.js:6591
jQuery.ajaxTransport.send.callbackjquery-1.5.1.js:7382
Is there a way to check before my function calls:
$('.upload').fileUploadUI({
.........
.........
.........
Thanks
You can add/set a class as a flag of sorts. In this case, we’ll add a class called
appliedUpdate as pointed out below by
yoavmatchulsky, you could also, more easily do