I have a file upload page that uploads an image file, resizes it, and saves it.
The error is thrown on this line.
dim myImage as Image = Image.FromFile(File1.PostedFile.FileName)
It shows system.io.filenotfoundexception when it hits that line. If I use the quickwatch window, and copy the value for file1.postedFile.FileName and paste it into the browser, it shows the image.
I know the file exists. Does anyone know what might be causing this?
Thanks,
Drew10
The error is thrown on this line.
dim myImage as Image = Image.FromFile(File1.PostedFile.FileName)
It shows system.io.filenotfoundexception when it hits that line. If I use the quickwatch window, and copy the value for file1.postedFile.FileName and paste it into the browser, it shows the image.
I know the file exists. Does anyone know what might be causing this?
Thanks,
Drew10