AsyncUpload - Error when a textfield on same page has text embedded in angle brackets

1 Answer 20 Views
AsyncUpload
Loy
Top achievements
Rank 1
Loy asked on 21 Dec 2024, 06:16 PM

I found an issue where I had a webpage that has an AsyncUpload control and a text field. If the user enters text that contains angle brackets with some text between the brackets, the AsyncUpload throws some type of error.

I was able to reproduce this problem in the Telerik demo:

https://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandradasyncupload/defaultcs.aspx?product=asyncupload

Steps:

1. Click "Add new record"

2. In the Image Name field type "test <test.com>"

3. Upload an image file

4. Click checkbox to add record

5. Error occurs.

 

 

1 Answer, 1 is accepted

Sort by
0
Attila Antal
Telerik team
answered on 23 Dec 2024, 04:50 PM

Hello Loy,

ASP.NET by default does not allow HTML tags in the TextBoxes, see Request Validation - Preventing Script Attacks.

It is possible to disable it I highly advise you against it. Here is a StackOverflow articles showing how to disable it: https://stackoverflow.com/a/8226484/2289769.

Regards,
Attila Antal
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources
Tags
AsyncUpload
Asked by
Loy
Top achievements
Rank 1
Answers by
Attila Antal
Telerik team
Share this question
or