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

The notification message only appears at the first time when upload exceeded size file or invalid extension file

    Details

      Description

      Reproduction Steps

      Test case 1:

      1. Create a Basic Web Content and click the Add button in the content field.
      2. Click the image icon and select a file which is larger than 100 MB.
        Result: The notification message "Please enter a file with a valid file size no larger than 100.0MB." appears.
      3. Click Select File button again and reselect this file.

      Actual Result: The notification message "Please enter a file with a valid file size no larger than 100.0MB." doesn't appear again.
      Expected Result: This notification appears every time when reselecting the same file which is larger than 100 MB.

       

      Test case 2:

      1. Go to Control Panel > Configuration > System Settings > Collaboration > Select Documents and Media Image Item Selector View 
      2. Remove ".png" from Valid Extension
      3. Create a Basic Web Content and click the Add button in the content field.
      4. Click the image icon and select a .png file
        Result: The notification message "Please enter a file with a valid extension (.bmp,.gif,.jpeg,.jpg,.tiff)." appears.
      5. Click Select File button again and reselect this file.

      Actual Result: The notification message "Please enter a file with a valid extension (.bmp,.gif,.jpeg,.jpg,.tiff)." doesn't appear again.
      Expected Result: This notification appears every time when reselecting the same file.

      **It can be reproduced in 7.0, 7.0.x and master when using Chrome.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 30 weeks, 2 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP68
                  7.0.X
                  7.1.10 DXP FP6
                  7.1.10.2 SP2
                  7.1.3 CE GA4
                  7.1.X
                  Master