This error indicates that there was a problem in the server-side processing of the upload. XFile was still trying to send data, but the server stopped executing the processing script.
Any number of server-side problems can cause this, such as:
The reason the XFile error does not contain more detail about the server-side error, is that XFile inherently only knows about what happens on the client machine. By default, XFile will only return detailed error messages if it was unable to do its part of the file transfer. If, however, XFile is able to access the file on the user's machine and successfully send an HTTP post to the server, but the server fails to process the request, XFile will return this generic error.
- The processing script timed out
- Syntax errors in the processing script
- Page not found - the path passed to XFile for the processing page was misspelled
To troubleshoot your problem, try the following steps:
- XFile has a Response property which captures the response from the server. On the HTML page instantiating XFile, use the Response property to output the response from the server. See the XFile documentation on this property. There are two samples attached which use the Response property: The sample in XFile_ASP_Response.zip uses the XFRequest object in an ASP page and displays the response using Response.Write. The sample in XFile_HTML_Response.zip uses the visual active-X object in an HTML page, puts a tag in the html page and sends the response to this span tag from the callback() sub in the progress page.
- Take a basic html upload form and submit it to the same server page processing the upload (see attached html page "files1.zip". point the form's action tag to your server-side processing page, select a file, and submit) Is there an error? The response displayed in the browser will often indicate exactly what the problem is.
- Again, this problem does not originate with XFile. Once you get the true error message, if the resolution is not obvious, troubleshoot the server-side issue as you normally would. If you are using FileUp to catch the uploads on the server, try searching the FileUp KB articles for assistance.