file uploader problem in asp.net
Posted on 2011-09-12
I have two users on our local network. I'm trying to do the following:
On one machine I am getting the directory name. On the other I am getting nothing. I tried just printing out fuFileName.PostedFile.FileName.ToLower 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.