How do I programmatically save an uploaded file (using the File Field
control) to a sub folder of a web site.
I've tried specifying ..SaveAs("~Uploads/" & "fielname") but it keeps
looking in for a c:\Windows\System32\Uploads folder.
I've created the uploads folder within the site and set the permissions
correctly.
Regards
John.John wrote:
> Hi all,
> How do I programmatically save an uploaded file (using the File Field
> control) to a sub folder of a web site.
> I've tried specifying ..SaveAs("~Uploads/" & "fielname") but it keeps
> looking in for a c:\Windows\System32\Uploads folder.
I guess you're referring to HttpPostedFile.SaveAs()? Shouldn't that be
"~/Uploads" BTW?
Cheers,
--
http://www.joergjooss.de
mailto:news-reply@.joergjooss.de
0 comments:
Post a Comment