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

core_files_upload File not specified

$
0
0
by Alex Phillips.  

Hi all, 
I am trying to upload files to Moodle 3.1.1 using the core_files_upload function. Whenever I try to upload the file I get this error:
{
     "exception": "moodle_exception",
     "errorcode": "nofile",
     "message": "File not specified"
}

I am using these parameters:
wstoken: TOKEN
wsfunction: core_files_upload
moodlewsrestformat: json
contextid: 1
componet: user
filepath: /
filename: test.txt
filearea: draft 
filecontent: base64("Hello world")
itemid: 0

Any info on what is causing this error would be greatly appreciated.
 




Viewing all articles
Browse latest Browse all 2361

Trending Articles



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