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

webservice/upload.php returning zero instead of actual itemid

$
0
0
por Martin Mastny.  

Hello everyone,

I'm using this "webservice" to upload files in moodle, which is fine, but when the json string is retrieved, it has itemid set to 0 (zero).

But whe I log in into moodle later, this uploaded file has a different itemid. I suppose that itemid is the huge number in the following link, which I can use to adress file

I'm on moodle 2.3

draftfile.php/104/user/draft/419799805/test6/image.jpg

my question is, how can I get the link to uploaded file, if the itemid is always 0???

Thanks M


Viewing all articles
Browse latest Browse all 2361

Trending Articles



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