This is a migrated thread and some comments may be shown as answers.

How to fire the upload programatically?

3 Answers 239 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Juan
Top achievements
Rank 1
Juan asked on 21 Nov 2011, 11:37 PM
Is there any way to fire the upload action when the uploader is set to autoUpload: false?
I mean, using javascript not a click on a button.

thx.

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 22 Nov 2011, 09:48 AM
Hi Juan,

You can click the submit button ( button.k-upload-selected ) programmatically.

Best wishes,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Juan
Top achievements
Rank 1
answered on 22 Nov 2011, 10:37 PM

Sorry I did not explain myself better. I need to be able to run the upload process using a script, and not clicking on a button or link.

0
Dimo
Telerik team
answered on 23 Nov 2011, 08:11 AM
Hello Juan,

What do you mean by "upload process" if not the submitting of the populated upload fields? If you want to populate the Upload fields with Javascript, instead of making the user select a file, this is not possible due to browser security restrictions.

Best wishes,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Upload
Asked by
Juan
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Juan
Top achievements
Rank 1
Share this question
or