hello friends...

i have done it using FileUpload1.PostedFile.FileName ....
but the problem is everything is working fine in IE ....but not in mozilla...safari....

actually i want to get the full path of the selected file...not the file name only..........


thank you.....

Recommended Answers

All 3 Replies

hi
by using filename you will get full path.test like this

if (fileup1.HasFile)
        {
            Response.Write(fileup1.PostedFile.FileName);
        }

that wont work in mozilla .....i even trid with javascript but no use. :(

fileUpload1.SaveAs(Server.MapPath(“~/uploads/”) + System.IO.Path.GetFilename(fileUpload1.FileName));

Be a part of the DaniWeb community

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