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

    I try to upload images to Cliche Album and I got this error.

    GALLERY-IMG1.JPG 153.1 KB
    [Cliche] File could not be uploaded

    Where is the problem?

    Thank You in advance,
    Tom
      • 4172
      • 5,888 Posts
      can it be, because of the uppercase-filename-extension '.JPG' ?
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 39982
        • 28 Posts
        Hello and thank you Bruno17!

        I uninstall Cliche package and install it again.

        Console running...
        Attempting to install package with signature: cliche-1.1.0-RC1
        Package found...now preparing to install.
        Grabbing package workspace...
        Workspace environment initiated, now installing package...
        Could not load package metadata for package cliche.
        Successfully installed package cliche-1.1.0-RC1

        Is this message important? "Could not load package metadata for package cliche."

        After new installation I Clear Cache and Flush Permissions, still not working. I also drop MySQL tables _cliche_albums and _cliche_items and install Cliche package again, nothing.

        Now I can't Create a new Album at all. I can fill Album name (required):, but when I push Save Album, "Saving, please Wait..." -box just blink and no Album created.

        I am running with MODX Rev 2.2.10-pl (traditional)

        Thanks,
        Tom
          • 4172
          • 5,888 Posts
          did you try to upload files with lowercase filename-extension?

          GALLERY-IMG1.jpg

            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 39982
            • 28 Posts
            Hi!

            I change filename-extension and filename both lowercase gallery_img1.jpg

            But now I can't Create new Album at all. sad
            I can fill Album name (required):, but when I push Save Album, "Saving, please Wait..." -box just blink and no Album created.

            Thanks,
            Tom
              • 39982
              • 28 Posts
              Hello!

              I drop MySQL and did new database with clean MODX Rev 2.2.10-pl (traditional) install. Then I install new Cliche package and try did new Album, everything ok this far. But...

              I try to upload images to Cliche Album and I got this error, again sad

              GALLERY-IMG1.JPG 153.1 KB
              [Cliche] File could not be uploaded

              File name is lowercase on my computer, but when Cliche "try to" upload image.jpg then it's some reason convert it uppercase. Where is the problem?

              Thank you,
              Tom
                • 39982
                • 28 Posts
                Hi!

                I find something from file core/components/cliche/model/cliche/helpers/fileuploader.class.php
                in rows 42-47. Why I found this is, because I google about "[Cliche] File could not be uploaded" error message. There is something like image size things, but I don't have that big images, so I think it isn't the issue. Or is it?

                public function initialize() {
                        $this->config[self::OPT_IGNORE_DIRECTORIES] = explode(',',$this->modx->getOption('cliche.import_ignore_directories',null,'.,..,.svn,.git,__MACOSX,.DS_Store'));
                        $this->config['sizeLimit'] = $this->modx->getOption('cliche.upload_size_limit', null, 2097152);
                        $this->config['allowedExtensions'] = $this->modx->getOption('cliche.upload_allowed_extensions', null, 'jpg,jpeg,gif,png,zip'); 
                        $this->_checkServerSettings();        
                    }


                I don't know, but what this mean?
                'cliche.import_ignore_directories',null,'.,..,.svn,.git,__MACOSX,.DS_Store'


                I work on local MAMP server.

                Thanks,
                Tom
                  • 20829
                  • 28 Posts
                  I am encountering the same issue, is there a known solution?

                  GALLERY-IMG1.JPG 153.1 KB
                  [Cliche] File could not be uploaded