Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-20981

Cannot upload an image on Image Dialog when the Max Upload size xproperty is empty

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 15.5-rc-1, 14.10.13
    • 14.10
    • Attachments
    • Windows 11 Pro, Edge 114, using a local instance of XWiki 14.10.12 on Oracle 19c, Tomcat 9.0.75
    • Unknown
    • N/A
    • N/A

    Description

      Steps to reproduce

      1. Login as Admin
      2. Go to http://localhost:8080/xwiki/bin/edit/XWiki/XWikiPreferences?editor=object
      3. Edit "Maximum Upload Size" xproperty and empty it (it should be "107374182400" by default)
      4. Click 'Save & View'
      5. Edit a page with CKEditor
      6. Click on 'Image' button from toolbar > 'Upload' tab
      7. Choose an image, then click 'Upload'

      Expected results

      The image is uploaded.

      Actual results

      A warning message is displayed: 

      File <name> is too large (<size>). Max file size: 0 bytes.

      The issue could not be reproduced on XWiki 14.9.

      Attachments

        Issue Links

          Activity

            People

              mleduc Manuel Leduc
              iandriuta Ilie Andriuta
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: