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

get_file_upload_error() is missing 3 PHP error codes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.1
    • Fix Version/s: 1.8.7, 1.9.3
    • Component/s: Files API
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      The get_file_upload_error() function is missing the following error codes:

      UPLOAD_ERR_NO_TMP_DIR => 'Missing a temporary folder.',
      UPLOAD_ERR_CANT_WRITE => 'Failed to write file to disk.',
      UPLOAD_ERR_EXTENSION => 'File upload stopped by extension.',

      (see http://www.php.net/manual/en/features.file-upload.errors.php)

        Attachments

          Activity

            People

            Assignee:
            francois Francois Marier
            Reporter:
            francois Francois Marier
            Tester:
            Petr Skoda
            Participants:
            Component watchers:
            Matteo Scaramuccia, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              15/Oct/08