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

RadUpload needs to be authenticated on the server

3 Answers 84 Views
Upload
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 28 May 2012, 01:36 PM
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?

3 Answers, 1 is accepted

Sort by
0
Accepted
Lancelot
Top achievements
Rank 1
answered on 30 May 2012, 04:42 PM
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
0
David
Top achievements
Rank 1
answered on 04 Jun 2012, 07:06 AM
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"];

0
Lancelot
Top achievements
Rank 1
answered on 06 Jun 2012, 02:27 PM
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
Tags
Upload
Asked by
David
Top achievements
Rank 1
Answers by
Lancelot
Top achievements
Rank 1
David
Top achievements
Rank 1
Share this question
or