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

RadEditor - Upload not working

4 Answers 56 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Roger Hynne
Top achievements
Rank 1
Roger Hynne asked on 09 Nov 2015, 11:06 AM

Hello,

 RadEditor is not validating the max file upload size while uploading an image. File size is defined in the web.config 

<httpRuntime requestValidationMode="2.0" maxRequestLength="200" executionTimeout="300" />
 

 Here is the code how an editor is added to the page

<telerik:RadEditor ID="EditorrrTesstt" runat="server" ImageManager-ViewPaths="~/files" ImageManager-UploadPaths="~/files" ImageManager-DeletePaths="~/files"></telerik:RadEditor>

 

I am adding the images to show the execution. It is a very simple page with just one editor instance.

Problem: A rad window is shown with nothing after i click the upload button!!

 

 

 

 

 

 

4 Answers, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 10 Nov 2015, 07:58 AM
Hi Roger,

With the MaxRequestLength property you control the length of the request size, which is not directly related to the file upload mechanism of FileExplorer. Also, exactly this setting might lead to the shown issue. 

In order to configure the maximum size of a file, you should use the MaxUploadFileSize property. As suggested here—http://docs.telerik.com/devtools/aspnet-ajax/controls/editor/functionality/dialogs/file-browser-dialogs/images.

Regards,
Ianko
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Roger Hynne
Top achievements
Rank 1
answered on 10 Nov 2015, 11:10 AM

Hi,

Your reply helped to understand the issue. After increasing the request size the problem has been fixed partially.

The problem is that, the image uploader is not validating the size of the file on client side! We get need to post back the form before the file size is validated. 

I have tried the Editor Demo​ and it is validating the file size on client side as soon a file is chosen for upload.

We are using the version 2014.2.724.40

 

0
Accepted
Ianko
Telerik team
answered on 10 Nov 2015, 11:34 AM
Hi Roger,

Try if setting EnableAsyncUpload property to true helps in this situation. 

If that does not help you, I strongly suggest upgrading the Telerik UI for ASP.NET AJAX suite with more recent version to get all improvements regarding this functionality. 

Regards,
Ianko
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Roger Hynne
Top achievements
Rank 1
answered on 12 Nov 2015, 11:35 AM
Thank you so much, setting the property EnableAsyncUpload fixed the problem. 
Tags
Editor
Asked by
Roger Hynne
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Roger Hynne
Top achievements
Rank 1
Share this question
or