Spatie Media Library custom properties

I'm using Spatie Media Library plugin on a form and allow to upload multiple files. To each uploaded file I want to associate custom properties. How do I integrate this with the form UI during the upload and afterwards when displaying the uploaded files? Does anyone has any suggestions? Thnkx.
7 Replies
Azad Furkan ŞAKAR
Media Library already has custom_properties column so you can make custom action and associate to media whatever you want
megseegmiller
megseegmiller2w ago
I use media library's custom properties to store captions, but I'm not sure how I would use a custom action to accomplish adding properties to individual media items. Can you elaborate a little more?
Azad Furkan ŞAKAR
I'm thinking of releasing it as a plugin this week, where there will also be a Media Library page. To access and organize all media from one page.
megseegmiller
megseegmiller6d ago
If you need a beta tester, I'm happy to test it out the custom properties feature. Will the media library page be integral to the functionality of the plugin? This isn't a feature I need and is one of the main reasons I am not using Media Library Manager.
Azad Furkan ŞAKAR
Actually there will not be a picker here. If there is a picker, the biggest feature of the Spatie Media Library, collections and conversions, will not be available for every model. The same conversions or collections are added to all the media you add. So when I solve this, maybe I can bring it back to the agenda with a different version. But I can say that it is visually similar. The reason why it is similar is because this is the best layout solution.
Azad Furkan ŞAKAR
You will be able to filter media by model and collections.

Did you find this page helpful?