Closed WojciechJasinski closed 11 years ago
You might try binding both inputs to the same button (which you're already doing) and then additionally using the onStart handler to cancel one or the other inputs from uploading based on your extra logic.
An onStart handler which returns falls will cancel that input's upload.
Hope that helps!
I've attached
ajaxfileupload
to myinput#file1
andinput#file2
withsubmit_button
set to$('#fake_submit')
because I don't want to upload file automatically. I would like to upload both files under some conditions for example:Any ideas how to make it work?