-
Bug
-
Resolution: Fixed
-
Major
-
2.5.5, 2.6.2, 2.8.5
-
MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_28_STABLE
-
MOODLE_29_STABLE, MOODLE_30_STABLE
-
MDL-44626-master -
To reproduce:
- As admin go to the gradebook import of a course.
- Try to drag n drop a file in the filepicker of any of the import format.
If the size is to big (Bigger than the post_max_size directive in php.ini), The warning message displayed is: "A required parameter (sesskey) was missing".
You can also reproduce it when adding a file resource.
It turns out that there are two issues here:
- The file manager does not get passed the true maxbytes value for those with a particular capability. In this case, the value `-1` (meaning unlimited) is passed. As a result, the file-size check is unable to compare the size of file being uploaded to the max size and reject files; and
- when those files are then passed to the upload script, php cuts off all parameters because they are large than the post_max_size directive. Because the sesskey check comes before any check for presence of a file, a message about incorrect sesskey is instead shown.
- caused a regression
-
MDL-54785 File System Repository silently obeys maximum file size
-
- Closed
-
-
MDL-53429 Limitation of file size in file system repository
-
- Closed
-
- Discovered while testing
-
MDL-44647 The filepicker do not use the maxbytes option
-
- Closed
-
- duplicates
-
MDL-33889 Resolve the inconsistencies with file size limitations
-
- Closed
-
- has been marked as being related by
-
MDL-53145 Atto file picker does not seem to respect the Site upload limit
-
- Closed
-
- is duplicated by
-
MDL-49976 Incorrect error shown for drag & drop when post_max_size is too low
-
- Closed
-
-
MDL-48154 In correct error message while uploading files
-
- Closed
-
-
MDL-33889 Resolve the inconsistencies with file size limitations
-
- Closed
-
- Testing discovered
-
MDL-44585 Restrict the accepted types in the gradebook import
-
- Closed
-
- will be (partly) resolved by
-
MDL-43418 File Picker upload limit improvement
-
- Closed
-
- will help resolve
-
MDL-43418 File Picker upload limit improvement
-
- Closed
-