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

              abel.yu Abel Yu (Inactive)
              alan.huang Alan Huang
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                4 years, 25 weeks, 1 day 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