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,
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,