We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25141
    • 49 Posts
    Since updating a clients website to Revo 2.3.1 I am not able to upload any image files (jpgs, JPGs, pngs …) via the Media Browser anymore. I always receive the error message „Upload of this filetype (.jpg) is not allowed!“

    Other filetypes (including pdf, mp3 etc) work fine. FTP upload works fine, permissions on image folder are 777.

    I checked the System Setting „upload_media“ and the image types were missing. I added them, cleared the cache (browser and ModX), logged out and back in - same error message.

    I suspect this is some kind of Access / Permission problem but I'm having a hard time wrapping my head around it. I updated my User Groups to include Media Source Access (Filesystem / Member / Media Source Admin), but it doesn't help.

    Grateful for any ideas!



    • MODX Version: Revo 2.3.1 pl (traditional)
    • PHP Version: 5.3.3-7+squeeze21
    • Database (MySQL, SQL Server, etc) Version: MySQL 5.1.73-1
    • Installed MODX Add-ons: basicnav, firstchildredirect, formit, getpage, getresources, taglister, tinymce, ultimateparent, wayfinder
    • Error Log Contents: [2014-08-25 14:12:17] (ERROR @ /index.php) Resource URI aktuelles/ankuendigungen/verkostung-castel-sallegg.html already exists for resource id = 92; skipping duplicate resource URI for resource id = 111
    • [2014-08-25 14:12:17] (ERROR @ /index.php) Resource URI seminare/online-bestellen.html already exists for resource id = 104; skipping duplicate resource URI for resource id = 105

    This question has been answered by sottwell. See the first response.

      • 25141
      • 49 Posts
      Does nobody else have this problem? Was it wrong to mess around with the Media Source Access?

      Thanks for any tip …
      • discuss.answer
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        The "media_types" are for video files. You want the upload_files and upload_images settings. Here's the default list of the upload_files setting on installation:
        txt,html,htm,xml,js,css,zip,gz,rar,z,tgz,tar,htaccess,mp3,mp4,aac,wav,au,wmv,avi,mpg,mpeg,pdf,doc,docx,xls,xlsx,ppt,pptx,jpg,jpeg,png,gif,psd,ico,bmp,odt,ods,odp,odb,odg,odf



        You also might need to check the "Filesystem" Media Source, as well as individual user settings.
          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
          • 25141
          • 49 Posts
          Thanks, that did it! I have no idea why, but my upload_files settings ended with pdf …
            • 38360
            • 20 Posts
            I was facing the same problem. Was updating MODX since. 2.0.8.

            After updating the upload_files field it works again

            Thanks
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              I've noticed sometimes odd little things like that in system settings, and on a couple of occasions even Policy checkboxes that were unchecked during upgrades. I'm not sure why.
                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
                • 24374
                • 322 Posts
                I've had policy checkboxes get unchecked on upgrading, and not just to 2.3. It happened upgrading a client to 2.2.14 as well.