Upload button disable after select file

4 posts, 0 answers
  1. Franklin
    Franklin avatar
    10 posts
    Member since:
    Jul 2012

    Posted 06 Aug 2012 Link to this post

    I´m working with the RadFileExplorer, theContentProviderTypeName I´m using is FtpContentProvider.
    The control lists all the FTP files, it can create and delete, BUT when I select a file to upload it, the upload button gets disabled inmediatly.

    This is my code:
    telerik:RadFileExplorer ID="attachmentFileExplorer" runat="server" Width="100%"                     Height="300px" PageSize="10"  EnableOpenFile="True">                                     
    Configuration EnableAsyncUpload="true"
       ViewPaths="/FOLDER 1/" 
       UploadPaths="/FOLDER 1/" 
       DeletePaths="/FOLDER 1/" />

    protected void Page_Load(object sender, EventArgs e)

                string[] paths = new string[] { "/FOLDER 1/" };
                attachmentFileExplorer.Configuration.ViewPaths = paths;

                string[] deletePaths = new string[] { "/FOLDER 1/" };
                attachmentFileExplorer.Configuration.DeletePaths = deletePaths;

                string[] uploadPaths = new string[] { "/FOLDER 1/" };
                attachmentFileExplorer.Configuration.UploadPaths = uploadPaths;

                attachmentFileExplorer.EnableCreateNewFolder = true;
                attachmentFileExplorer.EnableOpenFile = false;

                attachmentFileExplorer.Configuration.ContentProviderTypeName = typeof(FtpContentProvider).AssemblyQualifiedName;
                attachmentFileExplorer.Configuration.EnableAsyncUpload = true;
                attachmentFileExplorer.Configuration.SearchPatterns = new string[] { "*.*" };
                attachmentFileExplorer.InitialPath = "/FOLDER1/";

    Thanks in advanced.

    I Hope you can help with this.
  2. Robert
    Robert avatar
    13 posts
    Member since:
    Aug 2011

    Posted 09 Feb 2013 Link to this post

    I am seeing the exact same behavior but using the AWS S3 content provider so I don't think it is your code. Did you ever get an answer to this?
  3. Vessy
    Vessy avatar
    1677 posts

    Posted 11 Feb 2013 Link to this post

    Hi everyone,

    This is the expected behavior of the RadUpload, and it is experienced when the uploaded file's size is bigger than the max size enabled in the FileExplorer. The files remains visible (with a red dot in front of it), but the upload button is disabled, because actually the file is rejected and cannot be uploaded.

    In order to configure the max allowed upload size, you have to set the desired value to the RadFileExplorer's configuration's MaxUploadFileSize property, e.g:
    <telerik:RadFileExplorer ID="RadFileExplorer1" runat="server">
        <Configuration ViewPaths="~/" UploadPaths="~/" DeletePaths="~/" MaxUploadFileSize="999999"/>

    Additionally, if you want to enable the uploading of files, with size bigger than 4MB, you have to made the corresponding configurations in the web.config. You can take a look at this help article for reference on what steps to take in order to allow for large files uploads.

    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  4. david
    david avatar
    2 posts
    Member since:
    Jun 2008

    Posted 09 Apr 2015 Link to this post

    Make sure the user has access permissions for the /App_Data/RadUploadTemp/ directory.
Back to Top