3

I am using RadAsyncUpload control from Telerik to upload a file on the server. It is working well locally (on localhost) but not in the server. What did I miss?

(When I select a file to upload the dot becomes red instead of green)

Tony L.
  • 17,638
  • 8
  • 69
  • 66
Vipina K
  • 47
  • 1
  • 6

2 Answers2

2

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

Another symptom in this case, Chrome DevTools console was showing the following error when I attempt to upload a file:

  • HTTP Error code is 500

There is a temp folder where RadAsyncUpload saves files temporarily. If you don't define the TemporaryFolder property on the RadAsyncUpload control, the default will be in your App_Data\RadUploadTemp folder. If IIS_USERS don't have write permissions to this folder, the upload can't save a file here. It will work on your localhost because you have write permissions to that folder. Here's how to give the permissions necessary.

  1. Right click on the App_Data\RadUploadTemp folder on server and select proprties
  2. Select Security tab
  3. Click "Edit..." button
  4. Under "Group or user names:", select IIS_USERS
  5. Under "Permissions for IIS_USERS", check Write in the Allow column.

Note: This was IIS 7 on Windows 2008 R2 Server.

Tony L.
  • 17,638
  • 8
  • 69
  • 66
0

The dot could become red either when the allowed file extension validation failed or when the file size exceeds the allowed one.

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

The Troubleshooting article offers additional information about the different errors and how to solve them.

Rumen Jekov
  • 1,665
  • 2
  • 17
  • 19