|There are a number of possible reasons why the file would not be found on the server after a successful transfer by XFile:
- In the server-side upload processing page, the
upload path was set incorrectly and the file ended up somewhere other than where
- There was a permissions error when attempting to cache
or save the file.
- Some other
server-side error occurred during the execution of the upload processing
To isolate the problem, try some or all of the following steps.
- Carefully examine your upload processing page and make sure there are no
errors in the code. (for example, make sure the path is spelled correctly
and that you have not tried to set the
Path property dynamically from the form or after
referencing a form element. See Knowledge Base article #8)
- To isolate the problem from XFile, try uploading a file from a
regular HTML form and posting to the same processing page.
- Make sure that the NTFS permissions are correct for the upload
directory on the server (Read/Write/Delete for the anonymous or authenticated
- Use XFile's Response property to display the
response from the server and get detailed error information
If doing an
ASP file transfer with the XFRequest object - after calling Xfile's start method,
you can write:
<% Response.Write [XFRequestObject].Response %>
If using XFile in client-side script on an html page:
Put a <span> tag in the section of the page where you want the results
to be displayed, as follows:
<Span ID="ResponseText" Name="ResponseText"></Span>
Then, in your client-side script, after you call XFile's start
method, assign the value of the response property to the InnerHTML of the span
tag. If you are using a separate progress window, you will need to to
send the response to this span tag from the progress page, where you call XFile's
Inside the attached
XFile_Response.zip are two samples.
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 <span> tag in the html page and sends the response
to this span tag from the callback() sub in the progress page.