Fraser_Admin
asked on
file uploader problem in asp.net
I have two users on our local network. I'm trying to do the following:
System.IO.Path.GetDirector yName(fuFi leName.Pos tedFile.Fi leName).To Lower
On one machine I am getting the directory name. On the other I am getting nothing. I tried just printing out fuFileName.PostedFile.File Name.ToLow er on the machine I can use the above statement on I'm getting the full path and file name. On the other I'm getting only the filename.
The code is successful on several computers running ie7 and ie8 but this particular one (running ie 8) will not work. I have read that secruity reasons will prevent the client path to be returned but then i also read it will work on the local network. the reason I want it is because the file needs to come from one central location on the server. I'm using the fileuploader control not really as a file uploader but as a file picker.
Hope this makes sense. I'm thinking there is some security setting in ie 8 preventing this from working.
System.IO.Path.GetDirector
On one machine I am getting the directory name. On the other I am getting nothing. I tried just printing out fuFileName.PostedFile.File
The code is successful on several computers running ie7 and ie8 but this particular one (running ie 8) will not work. I have read that secruity reasons will prevent the client path to be returned but then i also read it will work on the local network. the reason I want it is because the file needs to come from one central location on the server. I'm using the fileuploader control not really as a file uploader but as a file picker.
Hope this makes sense. I'm thinking there is some security setting in ie 8 preventing this from working.
What is the current security zone selected on IE8 on that computer? Is it same as other computers?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER