Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
280
Clear Upload button
posted

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.

Parents
No Data
Reply
  • 15320
    Offline posted

    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

Children