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

Webservice file upload is more restrictive than uploads with the filepicker/filemanager.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not a bug
    • 2.5
    • None
    • Web Services
    • MOODLE_25_STABLE

    Description

      The webservice file upload script (webservice/upload.php) takes the $CFG->maxbytes setting and applies it to the total size of all files in any of the users draft areas plus the uploaded files. This is to prevent the webservice being used to completely fill the disk of the Moodle server.

      An upload with filepicker/filemanager applies the maxbytes setting to each file in the upload (so a limit of 20MB allows 4 15MB files).

      This could be split into a separate setting or the filepicker/filemanager could be changed to use the same logic as the webservice upload (it is hard to implement the filemanager/filepicker logic in the webservice without big API changes).

      Note: This only applies if MDL-22236 is integrated without further changes.

      Attachments

        Issue Links

          Activity

            People

              damyon Damyon Wiese
              damyon Damyon Wiese
              Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: