[ Index ]
|
PHP Cross Reference of moodle-2.8
|
[Source view]
[Print]
[Project Stats]
Accept uploading files by web service token POST params: token => the web service user token (needed for authentication) filepath => the private file aera 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 ... filearea => 'private' or 'draft' (default = 'private'). These are the only 2 areas we are allowing direct uploads via webservices. The private file area is deprecated - please don't use it. itemid => For draft areas this is 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. For private files, this is ignored.