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

Upload button disable after select file

3 Answers 162 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Franklin
Top achievements
Rank 1
Franklin asked on 06 Aug 2012, 08:10 PM
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/" />
</telerik:RadFileExplorer>


protected void Page_Load(object sender, EventArgs e)
        {
           attachmentFileExplorer.TreeView.Nodes.Clear();

            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.

3 Answers, 1 is accepted

Sort by
0
Robert
Top achievements
Rank 1
answered on 09 Feb 2013, 06:40 AM
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?
0
Vessy
Telerik team
answered on 11 Feb 2013, 04:57 PM
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"/>
</telerik:RadFileExplorer>

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.

Regards,
Vesi
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.
0
david
Top achievements
Rank 1
answered on 09 Apr 2015, 01:02 PM
Make sure the user has access permissions for the /App_Data/RadUploadTemp/ directory.
Tags
FileExplorer
Asked by
Franklin
Top achievements
Rank 1
Answers by
Robert
Top achievements
Rank 1
Vessy
Telerik team
david
Top achievements
Rank 1
Share this question
or