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

Upload file to database instead of save to folder

1 Answer 75 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 20 Sep 2010, 04:57 PM
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.

1 Answer, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 22 Sep 2010, 04:21 PM
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.

Regards,
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
Tags
Upload (Obsolete)
Asked by
Brian
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Share this question
or