HttpPostedFile SaveAs method is corrupting file
Posted on 2011-04-19
I have a vb.net webpage with a Flash file uploader. When I use the HttpPostedFile.SaveAs method and save the file to a folder on the local drive of the web server, the file saves correctly and is readable by Excel. When the same file is saved to a remote server in the workgroup the Excel file is corrupted and cannot be opened. The file size for the original Excel spreadsheet is 3.89 megs, when it arrives on the remote server the file size is 3.51 megs. The Flash Uploader reports no errors, and the webpage reports no errors. The whole file upload and saving process is seamless and reports no errors.
Originally I was having a problem with Symantec Endpoint Protection software, in debug mode vb.net would report the network connection being unavailable. Since updating the Symantec software I don't have the network connection timing out, but still have the file corruption problem.
Any help would be most appreciated as I'm confused and frustrated. Thanks