[Koha-bugs] [Bug 14296] Introduce upload settings, add quota and translate alerts

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jun 2 14:09:40 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14296

--- Comment #3 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
Created attachment 39766
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39766&action=edit
Bug 14296: Add checks for upload quota

This patch includes:
[1] A new routine CheckQuota in module UploadedFiles.
[2] Unit tests for CheckQuota in Uploadedfiles.t
[3] A check of the quota before uploading a file in upload.pl and a warning
    in the template if you exceeded these quota already.

Test plan:
[1] Delete all records from upload_settings (if any).
[2] Upload a file. No restrictions.
[3] Add a record in upload_settings with type=spacequota, count1=5000 and
    count2=1. (Yes, an interface will be added.)
[4] Upload a file smaller than 5000 bytes. No restriction.
[5] Upload another file making sure that the size of both files exceeds
    5000 bytes. Your upload should be stopped.
[6] Run the unit test with additional item and space quota tests.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list