We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25046
    • 194 Posts
    My client occasionally needs to upload files (up to 20MB) to one or more folders. What is the best way for this to be done? I have no problem giving them Admin access so is there a recommended way to do this from the site manager? What steps are necessary?

    Alternatively, is there a web user way that also make sense?

    I realize using an FTP program is pretty easy as well but my client seems to have an awful lot of difficulties with this method and I am looking for something easier for them.

    Thanks!
      • 7231
      • 4,205 Posts
      In the manager you have a document utility where you can browse the directories and upload files. In the manager go to Resourses/Manage FIles and you will see this. If the directory has write permissions you can upload to that directory (there is an upload file option at the bottom of the page that can handle multiple file).

      In the front end you could create a private area and use the UploadFIle or the new FancyUpload snippets to handle the file upload.

      http://www.modxcms.com/FancyUpload-1864.html
      http://www.modxcms.com/FileUpload-804.html

      One thing to consider however is that a 20MB file in many casses will be over the limit for file uploads using php. If you do not know what the limit is on your sever you can go to the manager Reports/System Info and click to view the phpinfo() and look for upload_max_filesize.
        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

        Something is happening here, but you don't know what it is.
        Do you, Mr. Jones? - [bob dylan]
        • 7231
        • 4,205 Posts
        The great thing about it (imo) is that the user doesn’t have to get used to a completely new software interface: Everything looks just as local folders. No need to explain which button does what and why. And of course: Uploading huge files is no problem, since it’s done via FTP, not HTTP.
        Hey, that is a another very useful tip. grin I swear, everyday I learn something from ganeshXL shocked
          [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

          Something is happening here, but you don't know what it is.
          Do you, Mr. Jones? - [bob dylan]
          • 25046
          • 194 Posts
          Thanks for the great responses.

          The PHP limit for uploading files on the server is 32MB. I have also set the upload limit in the ModX Configuration to 10,000,000 bytes however when I try to upload a 7MB file, nothing happens. The screen just sits there with no feedback as to whether anything is being uploaded. As it turns out, nothing is uploaded.

          My client uses MACs so I am not sure if there is any FTP capabilities in the browsers they use.

          Thanks
            • 7231
            • 4,205 Posts
            My client uses MACs so I am not sure if there is any FTP capabilities in the browsers they use.
            FIrefox has filezilla that works on the mac. Not sure how Safari handle ftp. There is a way to load an FTP virtual directory right on the desktop and it will be as simple as drag and drop.

            10,000,000 bytes
            without the commas may be better.
              [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

              Something is happening here, but you don't know what it is.
              Do you, Mr. Jones? - [bob dylan]
              • 25046
              • 194 Posts
              Yes, I set the file upload limit to 10000000 but just showed the commas in my earlier message to make the size clearer.

              Thanks for the FTP options. I did set up my (very distant) client with FileZilla for Mac but, as luck would have it, it worked for awhile then apparently stopped working, even after upgrading. Maybe they are just making excuses but I definitely need a simple and robust alternative FTP solution. I was hoping this could be done within MODX but apparently not for some reason.

              I did check the PHP info and the upload max file size is 32MB
                • 16034
                • 107 Posts
                I’m using FireFTP on my Mac( and WinXP) and it works excellent. If you need a native Mac program I’d suggest Cyberduck.

                /Kleist
                  MODx snippet-glossary 101:
                  Ditto = Content Lister -- Wayfinder == Menu Builder -- Jot = Comment Control