OnFileUploaded Handler on the Service Side and Authentication

4 posts, 0 answers
  1. JDT
    JDT avatar
    45 posts
    Member since:
    Jul 2007

    Posted 29 Mar 2010 Link to this post

    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!
  2. Tina Stancheva
    Tina Stancheva avatar
    3298 posts

    Posted 31 Mar 2010 Link to this post

    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.

    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.
  3. DevCraft R3 2016 release webinar banner
  4. JDT
    JDT avatar
    45 posts
    Member since:
    Jul 2007

    Posted 12 Apr 2010 Link to this post

    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.
  5. browniepoints
    browniepoints avatar
    9 posts
    Member since:
    Aug 2009

    Posted 14 Apr 2010 Link to this post

    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.
Back to Top