This question is locked. New answers and comments are not allowed.
Hi,
Is there a way to make the upload control to upload the selected files via javascript and not via the Upload Files button?
My upload control has the 'multiple' option set to FALSE. And I want to submit the selected files using a button I created, and not the Upload Files button that comes with the upload control.
<%= Html.Telerik().Upload()
.Name("attachment")
.Multiple(false)
.Async(async => async.Save("Save", "Home"))
.ClientEvents(e => e.OnUpload("onUpload").OnSuccess("onSuccess"))
%>
<!-- is it possible to make the upload control to upload the selected files with this button instead??? -->
<input type="button" onClick="upload();" />
Thanks in advance,
Danny.
Is there a way to make the upload control to upload the selected files via javascript and not via the Upload Files button?
My upload control has the 'multiple' option set to FALSE. And I want to submit the selected files using a button I created, and not the Upload Files button that comes with the upload control.
<%= Html.Telerik().Upload()
.Name("attachment")
.Multiple(false)
.Async(async => async.Save("Save", "Home"))
.ClientEvents(e => e.OnUpload("onUpload").OnSuccess("onSuccess"))
%>
<!-- is it possible to make the upload control to upload the selected files with this button instead??? -->
<input type="button" onClick="upload();" />
Thanks in advance,
Danny.