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

Uploading of file failed with <script> tags

1 Answer 25 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Bhanu
Top achievements
Rank 1
Bhanu asked on 13 Sep 2019, 03:32 AM

Using file explorer I am uploading files to my web server. The problem that I am facing is when I try to upload a file which contains <script></script> tags from a cross-origin (CORS), it fails showing a tiny red dot. However,the uploading of files containing script tags from 'same origin' succeeds.

Also note that Temporary folder is given enough permissions and I my web server is IIS. The error occurs in RadAsyncUploadScript.js while making an ajax request.

To be more specific the line "n.send(this.formData);" in RadAsyncUploadScript.js throws an error stating:

"Failed to load resource: the server responded with a status of 403 ()"

 

Thanks and Regards

Bhanu

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 16 Sep 2019, 02:11 PM

Hi Bhanu,

By default RadFileExplorer can upload files only to directories placed inside its parent application root directory. Can you confirm that the path to which you are trying to upload files when the error is thrown meets this requirement?

Regards,
Vessy
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
FileExplorer
Asked by
Bhanu
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or