Skip navigation
Currently Being Moderated

upload files to os x with cffile

Dec 28, 2012 5:05 PM

I'm working in my dev environment on my macbook pro. It is setup like this:

 

CF 10 and sql server running on parallels 8. I run cf builder on OS X along with Cornerstone for Subversion control All my web files are located on my mac os x hard drive.

 

My web app has several forms in which you can upload files. I can not seem to figure out the right path to put in the destination field for cffile. I have tried /path/to/location/ format but it does not work. Any ideas?

 

Thanks in advance.

 
Replies
  • Currently Being Moderated
    Dec 29, 2012 6:00 AM   in reply to pmlink360

    I don't know about Macs, but on a Windows machine the path starts with a drive letter.

     

    What does the term "does not work" mean?  Are you getting an error?  If so, what is it.

     

    Long term, when you put your app on a production server somewhere, your paths might not be the same.  It would behoove you to learn what the path will be on the production machine as soon as possible so that your app still works when you promote it.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 1, 2013 1:31 AM   in reply to pmlink360

    If \path\to\location\ is under the web root, then try

     

    destination="#expandPath('\path\to\location\')#"

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points