by Martin Mastny.
Hello, I have created a webservice that creates moodle page. This service accepts page source as html and several other parameters and basically copies the source code of standard page creation.
My question is: If I use webservice/upload.php for uploading images, how can I link these images into this html. What I mean by that: how src attribute of image should look like? Obviously I can't use draftfile.php as if creating page in standard way. json which I get from webservice looks like:
[{"component":"user","contextid":"104","userid":"7","filearea":"private","filename":"a2.jpg","filepath":"/testfolder1/","itemid":0,"license":"allrightsreserved","author":"teacher test","source":""}]
Thanks for help
Martin