mike55 Posted June 20, 2007 Posted June 20, 2007 Hi all I am using the asp.net upload control to help in uploading files to a ftp folder. When I call the following: System.IO.Path.GetFullPath(FileUpload1.FileName) on the control (FileUpload1) I get the following result: "C:\WINDOWS\system32\img1.JPG". My problem is that the file that I browsed to is not at this location, but instead at "C\img1.JPG". Can anyone suggest why I am getting a different file location? Mike55. Quote A Client refers to the person who incurs the development cost. A Customer refers to the person that pays to use the product. ------ My software never has bugs. It just develops random features. (Mosabama vbforums.com)
mike55 Posted June 20, 2007 Author Posted June 20, 2007 I have changed the cmd from: System.IO.Path.GetFullPath(FileUpload1.FileName) to: System.IO.Path.GetFullPath(FileUpload1.PostedFile.FileName) [code] and it appears to work correctly. Any comments? Mike55. Quote A Client refers to the person who incurs the development cost. A Customer refers to the person that pays to use the product. ------ My software never has bugs. It just develops random features. (Mosabama vbforums.com)
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.