Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-49976

Incorrect error shown for drag & drop when post_max_size is too low

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.8.5
    • Fix Version/s: None
    • Component/s: Filepicker
    • Testing Instructions:
      Hide

      1) Get to the upload a file area (via a File resource or restoring a backup)
      2) Ensure post_max_size in php.ini is set lower than the file you are uploading (by default, this is 8M).
      3) Drag that file onto the drag & drop area

      • Before fix, Error "A required parameter (sesskey) was missing" should appear.
      • After fix, Error "The uploaded file may exceed the post_max_size directive in php.ini." should appear

      4) Click the Add button to show File Picker
      5) Click 'Upload a file'
      6) Upload the same file you attempted to drag & drop

      • Before fix, Error "The uploaded file may exceed the post_max_size directive in php.ini." appears.
      • After fix, Error "The uploaded file may exceed the post_max_size directive in php.ini." appears.
      Show
      1) Get to the upload a file area (via a File resource or restoring a backup) 2) Ensure post_max_size in php.ini is set lower than the file you are uploading (by default, this is 8M). 3) Drag that file onto the drag & drop area Before fix, Error "A required parameter (sesskey) was missing" should appear. After fix, Error "The uploaded file may exceed the post_max_size directive in php.ini." should appear 4) Click the Add button to show File Picker 5) Click 'Upload a file' 6) Upload the same file you attempted to drag & drop Before fix, Error "The uploaded file may exceed the post_max_size directive in php.ini." appears. After fix, Error "The uploaded file may exceed the post_max_size directive in php.ini." appears.
    • Affected Branches:
      MOODLE_28_STABLE

      Description

      In Moodle 2.8, when uploading a file via File Picker -> Upload a file, you get the error "The uploaded file may exceed the post_max_size directive in php.ini.".

      When uploading a file via drag and drop, you get the error "A required parameter (sesskey) was missing".

      Both messages should be the same.

      I use drag & drop a lot. The current error message about sesskey is misleading and confusing. This isn't the problem at all (as I later found out by doing it via the file picker).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                danbennett Dan Bennett
                Participants:
                Component watchers:
                Adrian Greeve, Mihail Geshoski, Peter Dias
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: