Replies: 1 comment
-
For future Googler's I had this issue because I forgot to add the MediaCollection to my model: public function registerMediaCollections() : void
{
$this->addMediaCollection('images');
} Which must match the name in: $property
->syncFromMediaLibraryRequest($request->media)
->toMediaCollection('images'); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I have a working Vue app.
Media is also uploaded file and SQL is present.
But If I want to join the uploaded file to my model I'm gettin UUID error.
After I have created the Event wanted to join the uploaded file
$event->addFromMediaLibraryRequest($request->get('media'))->toMediaCollection('tmp-xls');
"message": "invalid uuid",
"exception": "Exception",
"file": "/Users/gergelymac/gitrepos/cascade/vendor/spatie/laravel-medialibrary-pro/src/Dto/PendingMediaItem.php",
"line": 41,
Any Idea?
Br.
Gergely
Beta Was this translation helpful? Give feedback.
All reactions