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

My private files user quota error message improvements

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.5
    • 2.4
    • Repositories
    • None
    • MOODLE_24_STABLE
    • MOODLE_25_STABLE
    • MDL-36472-master
    • Hide

      Test pre-requisites

      • Change the setting of maxbytes to something relatively smaller
      • Change userquota to something a bit higher than maxbytes

      Test steps

      1. Login as a student
      2. Go to your private files
      3. Make sure there is a valid/correct/accurate error message when:
        • Uploading a larger file than maxbytes
        • Uploading a file which will cause userquota to be exceeded (basically upload one file, and then another one)
        • Drag and drop a larger file than maxbytes
        • Drag and drop multiple files which altogether will exceed userquota
      Show
      Test pre-requisites Change the setting of maxbytes to something relatively smaller Change userquota to something a bit higher than maxbytes Test steps Login as a student Go to your private files Make sure there is a valid/correct/accurate error message when: Uploading a larger file than maxbytes Uploading a file which will cause userquota to be exceeded (basically upload one file, and then another one) Drag and drop a larger file than maxbytes Drag and drop multiple files which altogether will exceed userquota

      Following MDL-33766, Mark identified the following issues:

      1. The error messages do not have full-stops at the end of them like the other pop-up messages in the filemanager.
      2. When I add a file via drag 'n' drop that will exceed the maximum size for new files I am given "Uploaded file NameOfFile4.txt exceeded the maximum size limit set by the form" which is fine, however when I do the same thing via the add link I am given "The uploaded file exceeds the upload_max_filesize directive in php.ini." Why the difference in messages?
      3. When I add a file via drag 'n' drop that is less than the maximum size for new files but will exceed the overall limit I am given "Uploaded file NameOfFile3.txt exceeded the maximum size limit set by the form", this error message is wrong as it gives the impression that the file you are uploading exceeds the maximum size for a single file, when it is actually the overall limit that is being exceeded.
      4. When I add a file via the add link that is less than the maximum size for new files but will exceed the overall limit I am given the message 'Not enough available space to store this file' (notice it is different than when I drag n drop). I find this error message misleading. It may freak out some people who believe their server has no space left and will panic thinking their Moodle is about to crash. Why not something like, 'Adding this file will exceed the overall disk space allowed per upload'?

            fred Frédéric Massart
            poltawski Dan Poltawski
            Mark Nelson Mark Nelson
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Adrian Greeve Adrian Greeve
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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