Telerik rad async file upload control works well locally but not on server

I am using Telerik's RadAsyncUpload control to upload a file to the server. It works well locally (on localhost) but not on the server. What did I miss?

(When I select a file to upload, the dot turns red, not green)

+3


source to share


2 answers


I had the same behavior and it was a folder permissions issue.

Another symptom in this case, the Chrome DevTools console was showing the following error when trying to download a file:

  • HTTP Error Code: 500


There is a temporary folder where RadAsyncUpload temporarily saves files. If you do not define the TemporaryFolder property in the RadAsyncUpload control, the default will be in the App_Data \ RadUploadTemp folder . If IIS_USERS does not have write access to this folder, the download cannot save the file here. It will work on your localhost because you have write permissions to that folder. Here's how to grant the required permissions.

  • Right click on the App_Data \ RadUploadTemp folder on the server and select properties
  • Select the "Security" tab
  • Click the "Change ..."
  • Under "Group or User Names:" select IIS_USERS
  • Under Permissions for IIS_USERS, select the Create a Permission column check box .

Note. It was IIS 7 on a Windows 2008 R2 server.

+1


source


The dot can turn red either when a valid file extension is allowed or when the file size is exceeded.

You can attach OnClientValidationFailed and OnClientFileUploadFailed and check what the exact error is and fix it.



The troubleshooting article offers additional information on various errors and how to resolve them.

0


source







All Articles