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

Confused about actually uploading a file

1 Answer 25 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
J
Top achievements
Rank 1
J asked on 17 Jun 2010, 08:53 PM
I'm using RadUpload and since this is the first time I'm using this control I was confused about the uploading process itself.  The GUI part of the control displays the path on my local machine to the file that I want to upload after I click the 'Browse' button.  But how do I get the file itself?  Does the control save the file as a filestream in a particular property that I can inturn pass into some function?

J

1 Answer, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 22 Jun 2010, 02:49 PM
Hi J,

You get the uploaded file the following way:

void Button1_Click(object sender, EventArgs e)
    {
        foreach (UploadedFile file in RadUpload1.UploadedFiles)
        {
            // do something with the uploaded file.
        }
    }

Where Button1 is the button that you have used to submit the page. I also suggest that you take a look at the online demos and the online documentation.

Sincerely yours,
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
J
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Share this question
or