Quote:
Originally Posted by TheAccountant
What I can't understand is how's possible to handle content.
Lets say that I want to upload a video as admin. No encoding, no runtime checks, nothing.
With a custom php script you write some code where, after hitting the submit buttons and checking that all things entered in the form are correct, the "temp" file is moved into a given directory with a given name etc etc.
How's possible to achieve the same result with an headless cms? I started studying Directus.
|
Easy, you build a handler. In different Headless CMS this is done in different ways.
In Directus you simply extend the multimedia component to automatically fire a background task to run ffmpeg on the video, create thumbnails and extract meta data which will then automatically populate within Directus.
I've built this exact thing with Directus, it was quite easy for me but I am a coder. Directus is open source so anyone can add stuff like this with ease if they have a little coding experience.
To give you an idea of the benefit of using Directus over custom code to do this, it cut the development time to about two hours compared to a couple of days.
Remember that with all headless CMS you still need to build your own frontends or apps to deliver the content stored in the CMS.