esb01
02-15-2007, 04:08 AM
I have a code which is working fine locally
I browse for an image file -
<input id="FileToSave" type="file" name="FileToSave" runat="server">
Then I get the file name and upload it to the server with no problem
Dim strFileName As String = FileToSave.PostedFile.FileName
Uploading works fine on the server too.
But when I wish to check file properties (get width/height, resize, create a thumbnail), If File.Exists(strFileName) always return false.
Again it works locally but not on the server. File exists, the path is correct, security access is set to Full. What could be wrong? Why does the server upload files but can't read them?
I browse for an image file -
<input id="FileToSave" type="file" name="FileToSave" runat="server">
Then I get the file name and upload it to the server with no problem
Dim strFileName As String = FileToSave.PostedFile.FileName
Uploading works fine on the server too.
But when I wish to check file properties (get width/height, resize, create a thumbnail), If File.Exists(strFileName) always return false.
Again it works locally but not on the server. File exists, the path is correct, security access is set to Full. What could be wrong? Why does the server upload files but can't read them?