Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Medium Medium
    • Resolution: Unresolved
    • Affects Version/s: 4.7.0
    • Fix Version/s: None
    • Component/s: 5.x > Legacy IO
    • Labels:
      None

      Description

      The following error seems to occur when uploading an image attribute:

      "The size of the uploaded image exceeds limit set by upload_max_filesize directive in php.ini. Please contact the site administrator."

        Activity

        Hide
        Joao Inacio (Inactive) added a comment -

        After further investigation, it seems that the image datatype has the following check:

                if ( $canFetchResult == eZHTTPFile::UPLOADEDFILE_EXCEEDS_PHP_LIMIT )
                {
                    $contentObjectAttribute->setValidationError( ezpI18n::tr( 'kernel/classes/datatypes',
                        'The size of the uploaded image exceeds limit set by upload_max_filesize directive in php.ini. Please contact the site administrator.' ) );
                    return eZInputValidator::STATE_INVALID;
                }

        The $canFetchResult variable, resulting from eZHTTPFile::canFetch() is a boolean, and the comparison to the constant (-2) returns true

        eZHTTPFile::canFetch() is not returning a proper result as documented (int if $maxSize parameter is given).

        Show
        Joao Inacio (Inactive) added a comment - After further investigation, it seems that the image datatype has the following check: if ( $canFetchResult == eZHTTPFile::UPLOADEDFILE_EXCEEDS_PHP_LIMIT ) { $contentObjectAttribute->setValidationError( ezpI18n::tr( 'kernel/classes/datatypes', 'The size of the uploaded image exceeds limit set by upload_max_filesize directive in php.ini. Please contact the site administrator.' ) ); return eZInputValidator::STATE_INVALID; } The $canFetchResult variable, resulting from eZHTTPFile::canFetch() is a boolean, and the comparison to the constant (-2) returns true eZHTTPFile::canFetch() is not returning a proper result as documented (int if $maxSize parameter is given).

          People

          • Assignee:
            Unassigned
            Reporter:
            Joao Inacio (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: