Replies
Thank you for your help, Alex!
This gives me what I need to know to handle the error.
Randy
Hello Alex,
I did figure out how to prevent the timeout during larger uploads, it was by adding this line to the system.web section of my web.config:
<httpRuntime requestValidationMode="4.5" maxRequestLength="102400" executionTimeout="1800" />
In this case, a file size of 100MB is allowed with 30 minutes allowed before the httpException is thrown.
It would still be very useful to be able to trap the timeout when it occurs. Do you have any suggestions about that?
Thank You,
Randy
Thank You, Alex.
I will check with my ISP to see if they can help.
In the meantime I would like to ask about trapping the onError event in the igUpload control. When the upload times out I am not able to display an error to the user and end the upload gracefully.
I have the following code to trap the error located in my igUpload initializer:
onError: function (evt, ui) {
var errorString = ui.errorMessage + ' (code=' + ui.errorCode + ', type=' + ui.errorType;
if (ui.ServerMessage != null) { errorString += ' – ' + ui.ServerMessage ; }
errorString += ')';
console.log('video upload error: ' + errorString);
$("#videoUploadError").html(errorString);
},
What happens in my situation is that this code never fires, the fileUploading event just continues to fire with the uploadedBytes total remaining the same. I have attached a screen shot of this.
Eventually, a server side error will be thrown:
System.Web.HttpException (0x80004005): Request timed out.
However, the fileUploading event continues to fire on the igUpload even after that. You can see this in the screen shot as well.
Do you have a suggestion as to how I can trap the onError event and end the upload when it times out?
Thank You,
Randy