Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-22512

Media gallery allows non image types to be uploaded when you select to add an image

    Details

      Description

      Media gallery allows non image types to be uploaded when you select to add an image

      1. Add the Media Gallery
      2. Configure it to show everything
      3. Add a folder
      4. In that folder, click on Add Media
      5. Choose Image for the media type
      6. Upload a file that doesn't end with .bmp, .gif, .jpeg, .jpg, .png, .tif, or .tiff
      7. Click Publish

      The request completes successfully and in the folder you will see the file that was uploaded. Previously, the image gallery would give you an error message that told you to upload an image file that ends with .bmp, .gif, .jpeg, .jpg, .png, .tif, or .tiff

        Issue Links

          Activity

          Hide
          caorongjin Alexander Chow (Inactive) added a comment -

          In 6.1, the Media Gallery no longer manages entries via extension but by mime type. In the fix, the error message will be that certain mime types are not allowed rather than extensions.

          The entries in portal.properties "ig.image.extensions" will be removed based on LPS-22112.

          Show
          caorongjin Alexander Chow (Inactive) added a comment - In 6.1, the Media Gallery no longer manages entries via extension but by mime type. In the fix, the error message will be that certain mime types are not allowed rather than extensions. The entries in portal.properties "ig.image.extensions" will be removed based on LPS-22112 .
          Hide
          christine.huang Christine Pince (Inactive) added a comment -

          PASSED Manual Testing following the steps in the description.

          Screenshot attached of the error message when uploading a non image type.

          Reproduced on:
          Tomcat 7.0.21 + MySQL 5. 6.1.x Revision: 91482.

          Fixed on:
          Tomcat 7.0.21 + MySQL 5. 6.1.x Revision: 93004.

          Show
          christine.huang Christine Pince (Inactive) added a comment - PASSED Manual Testing following the steps in the description. Screenshot attached of the error message when uploading a non image type. Reproduced on: Tomcat 7.0.21 + MySQL 5. 6.1.x Revision: 91482. Fixed on: Tomcat 7.0.21 + MySQL 5. 6.1.x Revision: 93004.

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 47 weeks ago

                Development

                  Subcomponents