[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/webservice/ -> upload.php (summary)

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.

Copyright: 2011 Dongsheng Cai <[email protected]>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 189 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1