• 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: File upload someplace other than /tmp?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File upload someplace other than /tmp?


  • Subject: Re: File upload someplace other than /tmp?
  • From: David Holt <email@hidden>
  • Date: Fri, 8 Apr 2005 11:08:30 -0700

Hi Darryl,

Set your desired upload path in the Application.java file. Do make sure that your WO application has permission to write to the folder that you have created for the uploads or you will end up back in /tmp by default.

You'll see where I've commented out the original line from the FileUpload example and inserted my own path. I am not sure if you can set the filepath to another volume or not. I do remember some discussion about it on the lists, though.

public class Application extends WOApplication {
    //static String _fileUploadPath = null;
	static String _fileUploadPath = "/Library/WebServer/Documents/UPLOAD";

    public static void main(String argv[]) {
        WOApplication.main(argv, Application.class);
    }

David

On 8 Apr 2005, at 10:59 AM, Darryl Snover wrote:

Hi,

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.

Thanks,

Darryl
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden


_______________________________________________ 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: 
 >WOA, Building a Login form (From: Amedeo Mantica <email@hidden>)
 >File upload someplace other than /tmp? (From: Darryl Snover <email@hidden>)

  • Prev by Date: Re: Best Practice on Uncommitted Changes in EC
  • Next by Date: Re: File upload someplace other than /tmp?
  • Previous by thread: File upload someplace other than /tmp?
  • Next by thread: Re: File upload someplace other than /tmp?
  • Index(es):
    • Date
    • Thread