• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WOFileUpload target dir
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >WOFileUpload target dir (From: Wolfram Stebel <email@hidden>)

  • Prev by Date: WOFileUpload target dir
  • Next by Date: Re: bosses who want to research .NET alternatives
  • Previous by thread: WOFileUpload target dir
  • Next by thread: Session terminate
  • Index(es):
    • Date
    • Thread