filament/spatie-laravel-media-library-plugin
v3.2.107
v11.21.0
v3.5.6
PHP 8.2
The spatie media library plugin form component doesn't seem to work inside a ManageRelatedRecords
page.
Some more discussion in Discord: https://discord.com/channels/883083792112300104/1275874487476289577
Trying to save an uploaded file results in the following SQL error:
SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: media.collection_name (Connection: sqlite, SQL: insert into "media" ("model_id", "model_type", "uuid", "order_column", "updated_at", "created_at") values (1, App\Models\User, 961bb9f2-b1bb-4a64-9ca0-2fd84b3087f1, 1, 2024-08-23 02:14:05, 2024-08-23 02:14:05))
In the reproduction repo I've included two subresources, one is files
which uses the default FileUpload
form component and works great. The second is media
which uses the spatie media library plugin and does not work.
I'm not sure how to debug this anymore.
Would expect it to create the media in the spatie media library table and also save the files to disk.
https://github.com/ryanmortier/filament-issues
No response
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too