RadUpload needs to be authenticated on the server

4 posts, 1 answers
  1. David
    David avatar
    15 posts
    Member since:
    Nov 2011

    Posted 28 May 2012 Link to this post

    Hello, I'd like to add a HTTP header on the radupload client so that the server knows who is trying to upload a file. Do you know how to do this?
  2. Answer
    Lancelot
    Lancelot avatar
    251 posts
    Member since:
    Jul 2012

    Posted 30 May 2012 Link to this post

    Hi Paulo,

    RadUpload can pass parameters along with the file (which is where you can pass in what you want)

    This link will bring you to the RadUploader documentation on how to attach additional parameters to the upload. http://www.telerik.com/help/silverlight/radupload-features-upload-service-parameters.html

    While you're in that documentation, look to the left and scroll down until you see all the features underneath the expanded folders. You will be currently in RadUpload > Features > Upload service Parameters. Take a look at all the other features this control offers you.

    Let me know if you need more help than that. If yes, provide me with some more detail on what you are trying to achieve and your project code. I'll help write you a solution to your needs.

    Thanks and Good Luck!
    Lancelot
  3. DevCraft banner
  4. David
    David avatar
    15 posts
    Member since:
    Nov 2011

    Posted 04 Jun 2012 Link to this post

    Hi Lancelot, It worked, not as I wonder because I'd like not to fail finding request on the headers:
    HttpContextBase context=...     
    var token = context.Request.Headers["myToken"];
     //If it is not in the header it might be a RadUpload request at the raw request
    if (string.IsNullOrEmpty(token))
         token = context.Request["myToken"];

  5. Lancelot
    Lancelot avatar
    251 posts
    Member since:
    Jul 2012

    Posted 06 Jun 2012 Link to this post

    Hi Paulo,

    Thats great! I'm glad you got the results you were looking for!

    If you would kindly mark the post as "Answer" so that other people may find an answer to a similar problem they're having. Doing so allows others to see that you did find a solution to your question.

    Thank you and good luck with your project,
    Lancelot
Back to Top