disable add file button
how would i disable the add file button when there is already a file in it with maxnumberoffiles set to undefined? can anyone help me with this?
The following will not exactly disable the add button, but will prevent adding more than one file:
$('#fileupload').fileupload({
maxNumberOfFiles: 1
});
Put it in application.js, replacing this line: https://github.com/blueimp/jQuery-File-Upload/blob/master/application.js#L19
i get it,thanks a lot....
i have a major problem in here,i put this plugin in a dialog box but i want that every time i close the dialog box a new instance of dialog box should appear or i want that the add file button is enable again....
how would i disable the add file button AFTER uploading a one file only...
You can try this:
$('#fileupload').bind('fileuploaddone', function (e, data) {
var fu = $(this).data('fileupload');
fu._disableFileInputButton();
});
Regards
thank you so much