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
2515
How to initiate upload separate from Add buttond
posted

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?

Parents
No Data
Reply
  • 17590
    Offline posted

    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
    });

    I am looking forward to hearing from you.

    Please feel free to ocntinue sending updates to this case at any time.

Children