The clear upload button clears the previously uploaded files. However if the file upload limit is set to 5 files and the user uploads 3 files and then clears the previous uploaded files they can only upload two files. The users have an expectation that clearing the previous upload will reset the uploaded file count to zero. So they could upload 5 more files. Is it possible to reset uploaded file count to zero to accomplish this?
We are using the jscript implimentation of the control.
Hello John,
Please note that "Clear Uploaded" button only hides the currently uploaded files from the upload container, it does not delete(reset their count to 0) them. So I would suggest you when you call clearAll API or when you use "Clear Uploaded" button (they do the same), set also the following properties:
$("#upload1").data("igUpload").fileInfoData.countTotalFiles = 0;
$("#upload1").data("igUpload").fileInfoData.countUploadingFiles = 0;
If you have any further questions, please let me know.
Regards,
Tsanna
THe above works great except in one case. I if I have file upload limit set to 5 and then upload 5 files. I select "Clear Uploads" and it clears but the "Add" button is disabled.
I re-enabled it in the script, but when I select "Add" nothing happens.
My guess is that after the 5th file is uploaded the fileNetUpload_bb button state is changed to disabled and the event for it is removed.
I am reenabling it with this code.
$("#fileNetUpload_bb").removeProp("disabled").removeClass("ui-igButton-disabled ui-state-disabled ui-igBrowseButton-disabled");
How can I re-enable the click function that opens the file browser?
I looked in the infragistics.lob.js and there is a section for ui.igBrowseButton and in it there are a few functions that look like they could be used to reregister the event handler for the button. Is that possible?