3 Replies Latest reply on Jan 1, 2013 1:31 AM by BKBK

    upload files to os x with cffile

    pmlink360 Level 1

      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.

        • 1. Re: upload files to os x with cffile
          Dan Bracuk Level 5

          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.

          • 2. Re: upload files to os x with cffile
            pmlink360 Level 1

            1. Macs dont have drive letters

            2. I was getting a 500 error but I finally got IIS to give me the CF error.

            The destination R:/EngagEnterprise/ml/uploads specified in the file's upload action is invalid.

            The destination either does not exist or is not accessible by this tag.


            3. I know what the path would be on my production sever, it windows based and I just change the values in my settings table.


            Since my post from yesterday, I set CF to run under my account, which is the same name on my mac as well and I realized that Parallels assigns a drive letter to my hard drive on my mac. I changed my path to use this drive letter and the above error is what I get. It appears to be a permissions issue with my account not being able to weite to thst directory.

            • 3. Re: upload files to os x with cffile
              BKBK Adobe Community Professional & MVP

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