You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Spatie\MediaLibraryPro\Dto\PendingMediaItem::Spatie\MediaLibraryPro\Dto{closure}(): Argument #1 ($customProperty) must be of type string, array given
It seems to be the getCustomProperties method in the PendingMediaItem class that's causing the issue, the $customPropertyNames is an array of arrays rather than array of property names?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Laravel 9.8.1
Spatie/laravel-medialibrary 10.3.2
I am getting an error when attempting to add custom properties when using SyncFromMediaLibraryRequest;
Spatie\MediaLibraryPro\Dto\PendingMediaItem::Spatie\MediaLibraryPro\Dto{closure}(): Argument #1 ($customProperty) must be of type string, array given
It seems to be the getCustomProperties method in the PendingMediaItem class that's causing the issue, the $customPropertyNames is an array of arrays rather than array of property names?
Beta Was this translation helpful? Give feedback.
All reactions