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

send id or object in page with upload async

1 Answer 96 Views
Upload
This is a migrated thread and some comments may be shown as answers.
ali
Top achievements
Rank 1
ali asked on 28 Feb 2013, 09:25 AM
Hello ,there
I want to send id with jsp kendo to track one to many parent ,
but there is no any custom function creation methodology in jsp kendo B version

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 04 Mar 2013, 09:13 AM
Hello Ali,

To send additional data to the server when uploading a file you should use the upload event. In this part of the documentation it is shown how to actually achieve this.

To subscribe to the event through the JSP wrappers you should use the following approach:

        <kendo:upload name="files" upload="extraData">
            <kendo:upload-async autoUpload="true" saveUrl="${saveUrl}" removeUrl="${removeUrl}"/>
        </kendo:upload>
 
 
<script>
    function extraData(e){
        e.data = {name:"Some Name"}
    }
</script>

I hope this helps.

Kind Regards,
Petur Subev
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
ali
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or