In my project I'm displaying a grid of files uploaded by a user. On each record of the grid I have an button to allow the user to replace a previously uploaded file. Each uploaded file is linked to a parent record in my database. What I want to know is - Is there a way to programmatically initiate the upload (i.e. displaying the browse window to select a file for upload) without having to click the Upload File button that is part of the igUpload widget?
Hello hrwebb,
Thank you for posting in our community.
In order to ensure that I will provide you with better and more accurate support I will need some additional information regarding your scenario. Could you please clarify what exactly is the scenario in which you would like to open the browser dialog without clicking the Upload button?
If I understood correctly you have a button for every grid record containing the file. Isn't it the Upload button of the igUpload that opens the browser dialog and lets the user to select file?
IgUpload control has an option called autostartupload that determines whether the selected file start upload automatically when it is selected. The default value of this option is false. If you would like files to upload right after you select them from the browse files dialog you could set this option to true. For example:
//Initialize $(".selector").igUpload({ autostartupload : true });
//Initialize
$(
".selector"
).igUpload({
autostartupload :
true
});
I am looking forward to hearing from you.
Please feel free to ocntinue sending updates to this case at any time.
Thank you for the quick response. Unfortunately, the described solution will not accomplish what I need.
However, I was able to determine how to use the igUpload control to accomplish what I need by making use of the igUpload1_ibb_fp input object created when instantiating the igUpload control.