Confused about actually uploading a file

Thread is closed for posting
2 posts, 0 answers
  1. J
    J avatar
    143 posts
    Member since:
    Jun 2006

    Posted 17 Jun 2010 Link to this post

    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?

  2. Genady Sergeev
    Genady Sergeev avatar
    1600 posts

    Posted 22 Jun 2010 Link to this post

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