When the TransferFile method is called, FileUp gets the desired file on the server, and outputs the bytes of
the file in the response stream to the user's browser. FileUp does not alter the file's contents
in any way.
The most common cause of corruption of a downloaded file's contents, is the inclusion of HTML or
Response.Write statements into the ASP code
of the download processing page.
As an additional precaution, you can explicitly clear the Response buffer before calling TransferFile or TransferBlob (assuming your Response.Buffer is set to True, which it normally is by default):
Any attempts to output HTML content of any type (i.e. message text, tags) will mix HTML content
into the download stream and corrupt the file.
Most often, these Response.Write statements are included in code to assist in debugging the code. Then, at
deployment, they are overlooked and not properly removed.
One additional factor which can cause this problem is if you have server-side debugging turned on for your FileUp download application.
To check this, go to the IIS console on the server. Right-click on the application containing your ASP download pages.
Choose properties. In the bottom section of the main tab, containing the application settings, click . Then click on the app debugging tab. If enable server-side script
is checked, please
Please note: If your FileUp ASP download page contains Server-Side Includes, you must be sure to verify
that these includes do not contain any attempts to generate HTML output either, or the same garbled results
In conclusion, in order to download a file correctly using FileUp, be sure that you have not
corrupted the download stream with HTML output. The download processing page must contain pure