Upload not works

Thread is closed for posting
3 posts, 0 answers
  1. alsi
    alsi avatar
    33 posts
    Member since:
    Nov 2006

    Posted 25 May 2009 Link to this post

    Hi All!

    today i've tried the RadUpload control with the following code and do nothing after postback:
    <form id="form1" runat="server"
            <asp:ScriptManager runat="server" ID="scrManager" /> 
            <telerik:RadUpload ID="RadUpload1" runat="server" AllowedFileExtensions=".jpg,.gif" 
                EnableEmbeddedSkins="False" MaxFileSize="1000000" TargetFolder="~/MyFiles"
            <br /> 
            <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" /> 
            <br /> 
    public partial class Tests_FileUpload : System.Web.UI.Page 
        protected void Page_Load(object sender, EventArgs e) 
        protected void Button1_Click(object sender, EventArgs e) 
            if (RadUpload1.UploadedFiles.Count > 0) 
                foreach (UploadedFile f in RadUpload1.UploadedFiles) 
                    string s = f.FileName; 

    - the UploadedFiles collection empty and i've selected the proper file, size and image format (jpg image)
    - no masterpage, no additional code, web.config configured for RadUpload

  2. Scott Allen
    Scott Allen avatar
    2 posts
    Member since:
    Apr 2010

    Posted 29 Apr 2010 Link to this post

    I'm having the same issue. Any ideas?
  3. DevCraft R3 2016 release webinar banner
  4. Genady Sergeev
    Genady Sergeev avatar
    1595 posts

    Posted 30 Apr 2010 Link to this post

    Hello Al Ga,

    Could you please check the InvalidFiles collection, does it contain fails? If both the UploadedFiles and InvalidFiles collections are empty please check the following collection:


    You code looks pretty fine, so the only thing that comes to my mind is that for some reason RadUpload threats the uploaded file as an invalid file.

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