Visual Studio 2005
I'm trying to upload a file. In either Firefox or IE, all I'm getting is a zero length file. I can't see what is wrong. The file is not zero length.
Code...
Dim PersonFile As String = PersonUpload.PostedFile.FileName
Dim filepath As String = server.MapPath(ResolveUrl("~/file_storate/"))
Dim file As HttpPostedFile = FileSystemsUpload.PostedFile
Dim FileNameParts() As String = Split(PersonFile, "\")
Dim FileName As String = FileNameParts(UBound(FileNameParts))
file.SaveAs(filepath & FileName)
Dim Columns() As String
Dim reader As IO.StreamReader = IO.File.OpenText(filepath & FileName)
Dim readline As String = reader.ReadLine ' heading line
My Web.Config file contains the following;
<httpRuntime Go to the complete details ...