virtuox,
I have Astro installed and attempted to download a plain text file (*.txt) but that failed as well, which led me to suspect that it is the method that the web site is using to send the file to the client.
In my case, I am using the reponse object to stream the file to the client.
C# Code
Code:
private void sendFile(string fileName, string saveAs)
{
byte[] fileStream;
if (fileName.Length == 0)
return;
fileStream = File.ReadAllBytes(UploadFolder + fileName);
saveAs = Regex.Replace(saveAs, @"[?:\/*""<>|]", "_");
//One final check
if (!IsFileNameValid(saveAs))
saveAs = "Default.txt";
Response.AddHeader("Content-Description", "File Transfer");
Response.AddHeader("Content-Type", "application/octet-stream");
Response.AddHeader("Content-Disposition", "attachment; filename=" + saveAs);
Response.AddHeader("Content-Transfer-Encoding", "binary");
Response.AddHeader("Expires", "0");
Response.AddHeader("Cache-Control", "must-revalidate, post-check=0, pre-check=0");
Response.AddHeader("Pragma", "public");
Response.AddHeader("Content-Length", fileStream.Length.ToString());
Response.OutputStream.Write(fileStream, 0, fileStream.Length);
WriteToLog("File Downloaded", fileName);
Response.Flush();
Response.End();
}