Re: File upload someplace other than /tmp?
Re: File upload someplace other than /tmp?
- Subject: Re: File upload someplace other than /tmp?
- From: Sacha Mallais <email@hidden>
- Date: Fri, 8 Apr 2005 11:20:02 -0700
On Apr 8, 2005, at 10:59 am, Darryl Snover wrote:
I'm attempting to implement a file upload page. Using the examples,
I've gotten it working well except that I can't seem to specify any
path other than to the /tmp folder. (This is on Mac OS X 10.3.8,
latest WebObjects). I'm guessing that this is some sort of
permissions issue, but as I'm not experienced in that area of java,
I'm appealing to the combined wisdom of the list.
Does anyone have any pointers or suggestions? Ideally I'd like to
place the files on a separate disk.
Hi Darryl,
I'm guessing your apps are running under the "appserver" user (which is
the default on OS X if you're using JavaMonitor). What you need to do
is create (or find :-) a directory that that user can write to. If you
become root, you can test writing a file as appserver:
become root: su -
test writing: sudo -u appserver touch
/path/to/writable/dir/filename.txt
What I often do is create a new user, say myAppName, who's home
directory contains a directory that my app can write to, for example by
making the directory owned by appserver...
sacha
--
Sacha Michel Mallais - 800 lb. gorilla
Global Village Consulting Inc.: http://www.global-village.net/
Bottom posting is your friend:
http://www.river.com/users/share/etiquette/
_______________________________________________
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