Upload file to database instead of save to folder

Thread is closed for posting
2 posts, 0 answers
  1. Brian Brown
    Brian Brown avatar
    5 posts
    Member since:
    Apr 2010

    Posted 20 Sep 2010 Link to this post

    I am using the RadUpload control with my ASP.Net form and I have it configured to insert the uploaded files to a SQL database.  This is working perfectly, but the issue is that it also saves the file(s) into the root directory of my application.  Nowhere in my code project does TargetFolder get set....  so my question is, how can I make it stop saving the file to my app directory?  Thanks.
  2. Genady Sergeev
    Genady Sergeev avatar
    1595 posts

    Posted 22 Sep 2010 Link to this post

    Hello Brian Brown,

    Please make sure that you don't invoke the SaveAs method of the UploadedFile class and there is no TargetFolder set on the upload component. RadUpload wont by any matter save the files to a folder on its own. One has to specifically told him to do so.

    Genady Sergeev
    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
Back to Top