We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21946
    • 283 Posts
    Hello
    When i upload a zip file, nothing happens (sorry for my french), et no error message appears in the page. I can upload zip with maxigallery so i think it’s ok for my configuration php/apache.
    It’s a small zip of less than 4mo, it’s ok with my configuration wich can upload 8MO max by a form...

    Ok, i tried again a few seconds ago and this time it worfs fine with the same zip than yesterday. Strange.
    Anyway thanks for your help !
      [url=http://www.savepoint.fr/index.php?id=38] -petits tuyaux pour les d
      • 87
      • 51 Posts
      Quote from: 2wistd at Sep 17, 2008, 11:28 AM

      [
      Now need to figure out how to create that folder

      Anyone know how to change the code so I can create the right folder?
        • 5062
        • 2 Posts
        Hi!

        I have one problem and I hope you can help me. Default path is &path=`/assets/uploads/`, but I like to have path to folder in home directory. But if I write &path=`/home/folder/` I recived The provided path is invalid. How can I manage that? Permissions are 777.

        Sorry for my english!
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          I would suspect that your server will not allow a web script to upload files to a folder outside of the web space.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 5062
            • 2 Posts
            Good point, this is a problem. I must find diferent solution. Thank you for the tip.
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              Depending on how much control you have over your server, you may be able to specifically allow uploads to a given directory above the web space (www, or htdocs, or public_html)
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 19726
                • 239 Posts
                Quote from: chickenboy at Jul 15, 2009, 02:02 PM
                But if I write &path=`/home/folder/` I recived The provided path is invalid. How can I manage that?
                The path that you provide is relative to the place where the root of the website is. So if your website is located on the filesytem in say "/sites/mywebsite/html" and you provide the path `/home/folder/` then the final path that is used will be /sites/mywebsite/html/home/folder/, which probably does not exist.

                You might be able to use some ../ in your path to get out of your website root. For example when you provide the path "../files" it might be able to write in a folder above the "html" folder in the example. The complete path will be . But I am not sure if the path paramter accepts those .. so you will have to try that yourself.