hi everyone,
In my project i'm working on Fileupload control.when i browse a file with IE7 it gives me a full path path of file but when i'm trying in Firefox and Chrome it does not give me a file path.
some says save it to your server or a drive then look from there .so when i delete that file from server. otherwise it will increase my server memory.
Help how to find Full path of the file or it's alternative.
i had tried.
this code till now

fileUpEx.PostedFile.FileName // it works for IE7 not for other browser
Path.GetFullPath(fileUpEx.PostedFile.FileName)// not works 
Server.MapPath(fileUpEx.PostedFile.FileName)//  not works
string filepath = Server.MapPath(fileUpEx.FileName); 
                        objProperty.PropertyImage = filepath;  
                        fileUpEx.SaveAs(filepath);

You really can't do this from the fileupload control. Based on certan ie permission settings, it won't always work in ie either.
My advice is to use either your own control and load the textbox value on postback, or use a 3rd party control.

You normally don't need, care, and so on....of what the path was on the client side.
You might want to rethink the way you are doing things if you need the client path.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.