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

Maximum attachment size is porly documented

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 1.0 B1
    • 0.9.840
    • Storage
    • None
    • Basic mysql

    Description

      When attaching large files to a page (say, 20+ megabytes), the files get truncated by the default setup in MySQL. That's due to the size of the MEDIUMBLOB column used to store the attachment data. Changing the type to LONGBLOB fixes the problem, but that's not the type of thing people might think about. The instructions for increasing the max_packet_size should mention the BLOB issue.

      Ideally, xwiki would return an error if a user tried to upload an attachment that exceeded the storage space.

      Attachments

        1. FileUploadPlugin.diff.patch
          5 kB
        2. UploadAction.diff.patch
          4 kB
        3. Utils.diff.patch
          0.7 kB
        4. XWikiDocument.diff.patch
          2 kB
        5. XWikiException.diff.patch
          0.9 kB
        6. FileUploadPlugin.diff.patch
          6 kB
        7. Utils.diff.patch
          0.8 kB

        Activity

          People

            chungnv Nguyen Viet Chung
            ericeslinger Eric Eslinger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: