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

[Solved] Unable to upload selected files

1 Answer 102 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Shans
Top achievements
Rank 1
Shans asked on 01 May 2009, 02:47 PM
Hi,

I am using the upload control and the client side events are working fine bu when i try to save the details form server side, the selected files are uploading the selected files. Please find below my sample code.

foreach (UploadedFile file in RadUpload1.UploadedFiles)
{
       byte[] bytes = new byte[file.InputStream.Length];
       file.InputStream.Read(bytes, 0, file.ContentLength);
      dr["Resume1"] = bytes;
 }
I have included enctype="multipart/form-data" in my form tag eventhough it is not working.

Could anyone please help me since this is little bit urgent.

Many thanks in advance.

Best Regards,
Shankar. M

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 01 May 2009, 02:56 PM
Hi Shans,

I could not understand what is the exact problem?

/quote:
when i try to save the details form server side, the selected files are uploading the selected files


Kind regards,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Upload (Obsolete)
Asked by
Shans
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Share this question
or