Hi Peter
Thanks for the info.
I am still getting the following message in Postman :
{“files”:[{“name”:“1492523640-7615”,“size”:1316610,“type”:“multipart/form-data; boundary=--------------------------449316675376425057078541”,“error”:“Filetype not allowed”}]}
Do you have any idea what is means?
(I can manually upload the files in Xibo 18)
Best REgards
Jan
Van: Peter Mis [mailto:noreply@xibo.org.uk]
Verzonden: dinsdag 18 april 2017 13:33
Aan: jan@jdt-services.nl
Onderwerp: [Xibo Community] [Support] API tempel 1.8 Upload Media items
https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/peter/45/321_1.png
https://community.xibo.org.uk/users/peter Peter staff
April 18
This api call is covered in the guide (using Postman) https://community.xibo.org.uk/t/1-8-api-introduction/7702 1.8 API Introduction
In code, you could use oAuth2 wrapper https://github.com/PeterMis/oauth2-xibo-cms/blob/master/src/Entity/XiboLibrary.php#L64 https://github.com/PeterMis/oauth2-xibo-cms/blob/master/src/Entity/XiboLibrary.php#L64
Simple example of using that wrapper - https://github.com/PeterMis/xibo-cms/blob/develop/tests/integration/LibraryTest.php#L69 https://github.com/PeterMis/xibo-cms/blob/develop/tests/integration/LibraryTest.php#L69
Have a look here as well https://github.com/PeterMis/oauth2-xibo-cms/blob/master/example/file.php https://github.com/PeterMis/oauth2-xibo-cms/blob/master/example/file.php
Perhaps that will give you some ideas