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

addresing files uploaded via webservice/upload.php

$
0
0
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


Viewing all articles
Browse latest Browse all 2362

Trending Articles



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