We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27449
    • 211 Posts
    Hello,

    I am having a problem with upload files in modx....
    My account user is administrator and when I want upload files I go to the Manage Files menu of modx and when I submit the upload file I have a message that "Uploading of this kind of file isn’t allowed!"

    How I resolv this problem?
    Please, Can you assist me

    Thank you
      • 15469
      • 64 Posts
      Check if your filetype is listed in tools/configuration/file manager in the backend.
      See attachment.

      Cheers
        $cd /pub
        $more beer
        • 27449
        • 211 Posts
        Hi,
        I checked my File Manager and in the filed Uploadable File Types I have this : txt,php,html,htm,xml,js,css,cache,zip,gz,rar,z,tgz,tar,htaccess,mp3,mp4,aac,wav,au,wmv,avi,mpg,mpeg,pdf,doc,xls,txt

        and When I ty to upload a php file I don’t is allowed, I have this message:

        Uploading edit.php to assets/
        File type: application/octet-stream, 4.61 KB

        Uploading of this kind of file isn’t allowed!
          • 15469
          • 64 Posts
          Uploading php code might be a severe security risk... Maybe, the coders of MODx have totally excluded that kind of filetype... (just guessing, I never tried this)

          Make sure you have the rights to read/open/write files on your server... Check it out locally, then test it online.

          Is it necessary to upload php-files? What are you trying to achieve...?
            $cd /pub
            $more beer