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

Send additional data with upload

3 Answers 23 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott asked on 30 Jul 2008, 05:48 AM
I am testing out the upload control and need to send some other pieces of data to the handler along with the files, ie user id so I can link the user with the file in the db.  Is there a standard way to do this?  Normally I guess I would use a session var but that obviously won't work in this case, seems like it would be useful to be able to send additional params in the post.

3 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 30 Jul 2008, 06:13 AM
Hi scott,

Yes - we are working on that - it will be available with the next update of the upload control.

We will have a property of type Dictionary which you can populate with the info you need. Those param/value pairs will then be available in the server handler for further processing. Is this ok for your scenario?

Thanks for the feedback.

Sincerely yours,
Valentin.Stoychev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Ben Hayat
Top achievements
Rank 2
answered on 30 Jul 2008, 01:29 PM
Hi Valentine;
"Those param/value pairs will then be available in the server handler for further processing. Is this ok for your scenario?"

I'm not answering behave of Scott, but the idea of Dictionary is very good to provide the Param/Value pair. My vote on that too ;-)
0
Scott
Top achievements
Rank 1
answered on 30 Jul 2008, 05:45 PM
yes, that sounds perfect.  thanks!
Tags
General Discussions
Asked by
Scott
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Ben Hayat
Top achievements
Rank 2
Scott
Top achievements
Rank 1
Share this question
or