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

Upload file to database instead of save to folder

1 Answer 151 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:58 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
Shinu
Top achievements
Rank 2
answered on 21 Sep 2010, 05:27 AM
Hello Brian,

You can use the InputStream property to access the content of the uploaded files without saving them to a temporary location. This property is useful when you want to insert the file into a database, or process its contents without saving.

Checkout the section "Using the InputStream property" in the following documentation.
Manipulating Uploaded Files


-Shinu.
Tags
Upload (Obsolete)
Asked by
Brian
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or