WebFileUploader.UploadError
From Xojo Documentation
Event
WebFileUploader.UploadError(error As RuntimeException)
New in 2018r1
Supported for all project types and targets.
New in 2018r1
Supported for all project types and targets.
Called when an error occurs during the upload process.
Notes
The RuntimeException.ErrorNumber will contain an HTTP status code and the RuntimeException.Message will contain the status message both of which are returned by the server.
One example of what could cause this event to fire would be if the file got to the server and a processing error occurred, such as 413 ENTITY TOO LARGE.
Error Codes
Code | Description |
---|---|
-1 | An unknown error occurred. |
0 | No error has occurred. |
1 | The upload cannot proceed because no files were specified. |
2 | The upload cannot proceed because there is already an upload in progress. |
3 | The upload cannot proceed because the number of files provided exceeds the MaximumFileCount. |
4 | The upload cannot proceed because the total size of the files provided exceed the MaximumBytes value. |
100 | The upload failed because the data was corrupt when it arrived at the server. |
101 | The upload failed because the file could not be created on the server. |
102 | The upload failed because the server ran out of memory. |
103 | The upload failed because the file could not be saved on the server. |