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

Client validation problems in the ImageManager on RadEditor

1 Answer 91 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Gianni
Top achievements
Rank 1
Gianni asked on 19 Aug 2014, 08:26 AM
Hi,

I have a problem that you can find also in this demo

http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx 

Scenario A)

I click on the ImageManager button-->Upload-->Select, I select a file a zip file of 50KB and I receive this message:
################################################################################
#Demo.zip                                                                                                                                                               #
#                                                                                                                                                                                #
#The size of the uploaded file exceed max size allowed-------------------------------------------------------------------#-->Not true
#The extension of the uploaded file is not valid. Please, provide a valid file!----------------------------------------#-->True (I should see only this message)
################################################################################

Scenario B)

I click on the ImageManager button-->Upload-->Select, I select a file a gif file of 300KB and I receive the same message:
################################################################################
#Demo.gif                                                                                                                                                                #
#                                                                                                                                                                                #
#The size of the uploaded file exceed max size allowed-------------------------------------------------------------------#-->True (I should see only this message)
#The extension of the uploaded file is not valid. Please, provide a valid file!----------------------------------------#-->Not True 
################################################################################

I saw I can set the EnableAsyncUpload property to "false" and in this way the validation of the extension and the format is done on the server and I get the only correct message, but I want to avoid the validation on the server side... I want to validate the format and the size before to send the file to the server.

How can I solve it ?

Thanks,
 Gianni,

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 21 Aug 2014, 02:04 PM

Hi Gianni,

I am logging this improvement here: http://feedback.telerik.com/Project/108/Feedback/Details/136245. This needs to be implemented in the RadFileExplorer control first before it can affect the RadEditor. If this item gets enough public interest we will consider its implementation. For the time being you can cast your vote, leave a comment and follow its progress. I have also updated your Telerik points for your suggestion.


Regards,

Marin Bratanov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Editor
Asked by
Gianni
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or