mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #51133
[Bug 1808245] Re: Make 'file' upload form field respect user quota better
Environment tested: Master
Browser tested: Chrome
Preconditions:
------------------------
1) config-defaults.php has the following line set — $cfg->maxuploadsize = 16777216; (16MB)
2) php.ini has the following line set — upload_max_filesize = 32M
3) exported skins file exists (17.5 MB)
Test Steps:
------------------------
1) Admin user log in
2) Browse to the following places and ensure that the text "(Maximum upload size 32MB)" is displayed near the upload button
--- a. admin menu > Users > Add users by CSV - CSV file upload ✔
--- b. admin menu > Configure site > Skins > Import skins - file upload ✔
--- c. admin menu > Group > Add groups by CSV - CSV file upload ✔
--- d. admin menu > Group > Update group members bt CSV - CSV file upload ✔
--- e. main menu > Manage > Import > Upload Leap2A file * - file upload ✔
--- f. main menu > Create > Resume > Education and employment > Education history - file upload ✔
--- g. main menu > Create > Resume > Education and employment > Employment history - file upload ✔
--- h. main menu > Create > Resume > Achievements > Certifications, accreditation and awards - file upload ✔
--- i. main menu > Create > Resume > Achievements > Books and publications - file upload ✔
--- j. main menu > Create > Resume > Achievements > Professional memberships - file upload ✔
--- k. admin menu > Configure site > Fonts > Install font - file upload ✔
--- l. admin menu > Configure site > Files - file upload ✔
3) Upload a file larger than the space will allow (ie. import a skins file)
4) Verify that the correct error message is displayed ✔
Catalyst QA Approved ✔
** Attachment added: "max exceeded for upload_14-12-18-12:03:07.png"
https://bugs.launchpad.net/mahara/+bug/1808245/+attachment/5222152/+files/max%20exceeded%20for%20upload_14-12-18-12%3A03%3A07.png
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1808245
Title:
Make 'file' upload form field respect user quota better
Status in Mahara:
In Progress
Bug description:
Currently the 'file' form field doesn't do the following:
1) It doesn't display the max file size (the 'filebrowser' form field
does this)
2) It returns the site's max file size on validation error even if a
use has a quota value smaller
Things to change:
1) allow the maxfilesize value to be able to be set to user's max
value if uploading into the user area, eg for importing skins/leap2a
files - as the relating content of images/files will end up counted as
user quota
2) allow the upload_manager() class to return error in correct max
filesize
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1808245/+subscriptions
References