Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Differences Between: [Versions 310 and 403] [Versions 311 and 403] [Versions 39 and 403] [Versions 400 and 403] [Versions 401 and 403]

Accept uploading files by web service token to the user draft file area. POST params: token => the web service user token (needed for authentication) filepath => file path (where files will be stored) [_FILES] => for example you can send the files with <input type=file>, or with curl magic: 'file_1' => '@/path/to/file', or ... itemid   => The draftid - this can be used to add a list of files to a draft area in separate requests. If it is 0, a new draftid will be generated.

Copyright: 2011 Dongsheng Cai <dongsheng@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 181 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files