hello!
we would like to create an office plugin, which uploads pdf files directly to moodle. so the file will be assigned to a user and a course and sould published there.
therefore we expected to use the "core_files_upload()" webservice.
we found following parameters in the forum:
$file = new stdClass();
$file ->contextid = 1;
$file ->component = 'test';
$file ->filearea = 'filearea';
$file ->itemid = 1;
$file ->filepath = 'filepath';
$file ->filename = 'nametothefile';
$file ->url = 'url';
but unfortunately it wasnt possible to find any further documentation.
Could someone support us with further information for this webservice or any other recomendations to simply publish a file at moodle via c#?
thanks in advance!