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

--- Comment #3 from Marcel de Rooy <[email protected]> ---
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to