.net 2.0: ASP.NET 2.0 upload path, rooted path??



hi!
i'm using asp.net 2.0 (visual studio 2005 beta)
i got an error when i'm trying to save an uploaded file (web
application) to a folder of the web application.

UploadedFile.PostedFile.SaveAs (Path);

where Path = "..\\upload\12345\\filename.jpg"

Error Message:
The SaveAs method is configured to require a rooted path, and the path
'../upload/12345/filename.jpg' is not rooted

any ideas?

.


Loading