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

Re: webservices for Assignment

$
0
0
by Andy Sayler.  

Hi Laura,

What parameters did you supply to 'core_files_upload' to make it work?

I'm currently trying to do something like this, but when I call 'core_file_upload' with the following params, I get an error:

Params:

itemid = 1,
contextid = 1,
filepath = /
filearea = private
component = user
filename = test1.txt
filecontent = VGhpcyBpcyBhIHRlc3QK (base64)

Response:

{'errorcode': 'nofile', 'exception': 'moodle_exception', 'message': 'File not specified'}

I'm also not really sure what to use for teh contextid. I'm just trying to push up soem files to a user's private file storage to start.

Thoughts?


Viewing all articles
Browse latest Browse all 2362

Trending Articles