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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 2.8.5
    • Filepicker
    • MOODLE_28_STABLE
    • 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.

      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).

            Unassigned Unassigned
            danbennett Dan Bennett
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.