We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18961 ☆ A M B ☆
    • 237 Posts
    Yesterday the Files folder in Assets on a ModX 1.0.6 install went bad. Not sure what caused it, but my client was trying to upload a 4 mb pdf file and the file limit was set to 1 mb. He tried several times until he asked me and I did change the limit to 5 mb. However, after changing it, whenever we highlighted a link and tried to get to the Files directory, the upload area was blank. There were about 12 other pdf's in there. I went to hosting control panel and was able to access the File directory where I saw a bunch of no named PDF files and several version of the file he was trying to upload. I went to delete them and got a message that the directory could not be read. Then it just disappeared. Gone. Nowhere to be found.

    So, I created a new Files directory thinking ModX would just find it when I logged back in. No luck.

    I really need a directory where my client can add his brochures. Is there a way to change where Modx is looking for the Files? I looked everywhere in the Configuration Tab and didn't see anything. I also looked at the TinyMCE snippet to see if it was called there.

    Any help would be appreciated. I need to be able to upload files.

    Thanks in advance. [ed. note: mdsdesign last edited this post 14 years ago.]
      Michael Smull
      http://www.bigpixelstudio.com
      twitter: @mdsdesign
      • 18373 ☆ A M B ☆
      • 3,141 Posts
      Mark Hamstra Reply #2, 14 years ago
      Sounds like somehow the permissions were changed to something you don't have read access to. If this is a shared hosting (1mb file limit sure sounds like one! tongue) you may be able of asking the host if it's still there.

      The location is relative to the assets / media url path stored in the configuration, and /files/ gets added to that for documents and the likes. The files bit of the url is, unfortunately, hard-coded in Evolution.
        Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

        Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
        • 18961 ☆ A M B ☆
        • 237 Posts
        Ahhh... so no way to change it.

        Well, I created a new directory called files in assets. I got no message that the directory already exists, etc. So, I was hoping ModX would just find the new directory, in the same place, with the same name. I guess that isn't going to happen. I'll check with the host and see if we can see the directory on their end.

        Any other thoughts to try?
          Michael Smull
          http://www.bigpixelstudio.com
          twitter: @mdsdesign
          • 18373 ☆ A M B ☆
          • 3,141 Posts
          Mark Hamstra Reply #4, 14 years ago
          Really sounds like a permissions problem to me. If the folder exists and is readable and writable for PHP, it should be fine. I'm way too rusty on Evo skills nowadays to really offer much of advise much beyond that.. could create an assets2 and point MODX there..
            Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

            Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
            • 11055 ☆ A M B ☆
            • 3,112 Posts
            What are your server's specs?
            Any error_log files you can share?
              Rico
              Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
              MODx is great, but knowing how to use it well makes it perfect!

              www.virtudraft.com

              Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

              Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

              Maintainter/contributor of Babel

              Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
              • 18961 ☆ A M B ☆
              • 237 Posts
              Hi All,

              Well, it seems to be fixed. Looks like it just took some time for ModX to recognize the new files folder and all is well. I did clear the cache from within the app, but it seemed to need time for the server itself to refresh. I don't know, unfortunately I'm often a bit technologically challenged.

              Thanks to all for the help and the suggests.

              Mike
                Michael Smull
                http://www.bigpixelstudio.com
                twitter: @mdsdesign