Re: WOFileUpload target dir
Re: WOFileUpload target dir
- Subject: Re: WOFileUpload target dir
- From: Zak Burke <email@hidden>
- Date: Tue, 17 May 2005 09:23:10 -0400
Wolfram Stebel wrote on 5/17/05 6:13 AM:
Hi all,
when i want to upload a file into an area inside of the webservers document
root area, what has the target directory to be?
all paths used to display an image are relative to document root.
is the target directory always addressed absolut?
WO always needs the full path to the upload directory. WO and your
webserver operate independently, so you have to tell WebObjects where
your webserver's DocumentRoot directory is -- WO doesn't know that the
URL "/my/page.html" corresponds to the file
"/var/httpd/my.host.com/htdocs/my/page.html".
In this case, to upload "page.html" you would need to provide the path
"/var/httpd/my.host.com/htdocs/my/" to WO.
FYI, Apache passes its DocumentRoot variable to WO in the request header
variable "document_root". Another alternative is to use a properties
file to set the full path to your uploads directory.
Good luck,
zak.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden