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

FileUploadFailed - how to get error message?

2 Answers 12 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Felix
Top achievements
Rank 1
Felix asked on 26 May 2016, 01:19 PM

I have an RadUpload with nothing special configured in my Silverlight XAML.

<telerik:RadUpload ... FileUploadFailed="RadUpload_OnFileUploadFailed"/>

The Handler in the Code behind is also straight forward.

private void RadUpload_OnFileUploadFailed(object sender, FileUploadFailedEventArgs e) {
  MessageBox.Show(e.ErrorMessage);
}

In the RadUploadHandler at server side I throw an exception.

public class MyUpload : RadUploadHandler {
  public override string GetTargetFolder() {
    throw new Exception("UploadPath not configured.");    
  }
}

But in RadUpload_OnFileUploadFailed I can't get the message. e.ErrorMessage is an empty string, no other property of e contains the message.

In the code of RadUploadHandler I can see that exceptions are caught and message is sent back to client like following in method ProcessRequest:

this.AddReturnParam("RadUAG_message", (object) ex.Message);

Also Fiddler shows that the message is sent to the client. Why it doesn't appear in the FileUploadFailedEventArgs?

2 Answers, 1 is accepted

Sort by
0
Kiril Vandov
Telerik team
answered on 31 May 2016, 11:43 AM
Hello Felix,

This is a known issue in our RadUpload control. Please note that we cannot bound to any time frame for the issue. Unfortunately there is no known workaround for this issue.

Please excuse us for any inconvenience caused.

Kind regards,
Kiril Vandov
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Felix
Top achievements
Rank 1
answered on 31 May 2016, 11:48 AM
OK, it's a pity, but I will deal with it.
Tags
Upload
Asked by
Felix
Top achievements
Rank 1
Answers by
Kiril Vandov
Telerik team
Felix
Top achievements
Rank 1
Share this question
or