Send additional data with upload

4 posts, 0 answers
  1. Scott
    Scott avatar
    4 posts
    Member since:
    Jul 2008

    Posted 30 Jul 2008 Link to this post

    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.
  2. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 30 Jul 2008 Link to this post

    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.
  3. Ben Hayat
    Ben Hayat avatar
    902 posts
    Member since:
    May 2008

    Posted 30 Jul 2008 Link to this post

    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 ;-)
  4. Scott
    Scott avatar
    4 posts
    Member since:
    Jul 2008

    Posted 30 Jul 2008 Link to this post

    yes, that sounds perfect.  thanks!
Back to Top