Author: cmt9000 | Posted on: 5/14/2010 12:59:29 PM | Views : 387

Hi,
 
I'm using a web form that allows users to upload media files.  The code works great on small to medium size files, but  I've found that if a file is really big(like bigger than 15MB), the user will get a 404 error.  Currently I'm using the code below to handle the file.  Does .NET provide another way to handle larger files?

Thanks!
 
Dim mediaFile As New FileInfo(xSourcePath) If mediaFile.Exists Then Try Dim fs As FileStream = File.Open(xSourcePath, FileMode.Open) File.Copy(xSourcePath, xDestinationPath) fs.Flush() fs.Close() Catch ex As Exception End Try End If
 
...

Go to the complete details ...