PHP API file upload

Hello,

Does anyone have an example of using the upload ingester within a module using the PHP API? I’m trying to upload a local file as a media object but am not having any success. Thanks for any help!

And to clarify I was hoping not to use the rest API but the PHP API. I have been able to upload media in this way with the url ingester but as this is a local file I do not have an accessible url.

Jarrod

Hi Jarrod,
I am also interested in this topic. Unfortunately, I am also still looking for how to add autoamtized media. Could you please briefly show your solution with the REST API?

I am more interested in the solution with PHP-Api, as well as you.

There’s actually a few examples of using the REST API on this forum: https://forum.omeka.org/t/create-items-and-relations-via-api/10830

1 Like

This topic was automatically closed 250 days after the last reply. New replies are no longer allowed.