Quantcast
Channel: Web services
Viewing all articles
Browse latest Browse all 2363

Re: Problem with core_files_upload Web Sevice

$
0
0
by Damyon Wiese.  

The context id is not required (best to leave it out really)

For private files the itemid is not needed either.

The error you are getting is because the

contextlevel must be set to 'user' and the instanceid must be the id of the user

Here is an alternative way to upload files:

https://docs.moodle.org/dev/Web_services_files_handling

Viewing all articles
Browse latest Browse all 2363

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>