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

OnFileUploaded Handler on the Service Side and Authentication

3 Answers 65 Views
Upload
This is a migrated thread and some comments may be shown as answers.
JDT
Top achievements
Rank 1
JDT asked on 29 Mar 2010, 05:18 AM
I have looked at the override "ProcessStream" however I can't find any example that shows me how to take the completed file's bytes in memory straight to my database.

It looks like I have to use an upload folder, read the files and then insert them into the DB. How can I do this all in memory so I don't have to use an upload directory? This would make it so I don't have to manage unique file names, collisions, the folders from getting to big, etc.

Also I am using asp.net authentication for a website (which also hosts the handler). I should be able to reliably get the user's isAuthenticated and session info correct?

Thanks and appreciate it as always!

3 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 31 Mar 2010, 04:11 PM
Hi JDT,

To implement this scenario, you can deal with the uploaded files by chunk. More information on how to accomplish this you can find here.

As for your second question, unfortunately the RadUploader doesn't support this scenario for now. However, we are planning to enable support for it as soon as possible. Do you have any deadlines regarding this feature?

Please let us know if you need more info.

Greetings,
Tina Stancheva
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
JDT
Top achievements
Rank 1
answered on 12 Apr 2010, 09:04 PM
I do. My deadline is in June of this year (2010). Thanks for the example I will start off with that. Although I can send user information as an input parameter, using asp.net auth would be more secure.
0
browniepoints
Top achievements
Rank 2
answered on 14 Apr 2010, 05:22 AM
If you're using ASP.NET MVC, I created an upload handler as a Controller action. You can decorate the action with an authorization attribute.
Tags
Upload
Asked by
JDT
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
JDT
Top achievements
Rank 1
browniepoints
Top achievements
Rank 2
Share this question
or