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

misleading error message during file upload

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • None
    • 1.6.3, 1.9
    • Antivirus, Libraries
    • None
    • Ubuntu 6.06, Apache 2.0.55, MySQL 5.0.22, PHP 5.1.2, Moodle 1.6.3 (2006050530)
    • MOODLE_16_STABLE, MOODLE_19_STABLE
    • \lib\uploadlib.php

      When uploading a file beyond the file max with ClamAV installed I get the error "A required parameter (id) was missing". I consider this misleading as it vaguely refers to something with the code; however, I suspect that what is happening is that Moodle attempts to upload the file and pass it to ClamAV for analysis; however, because it is too large it fails and the id does not get passed. What I think should happen is that Moodle ought to check the file size limit and compare it to the file size of the file. If it is too large then Moodle should report that the file is too large to be uploaded. If ClamAV is not being used then Moodle reports that the file was too large. This lets the user know the reason for the problem is a file that is too large. I would like for it to do the same if ClamAV is being used.

            aborrow Anthony Borrow
            aborrow Anthony Borrow
            Nobody Nobody
            Votes:
            8 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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