Sep 7, 2021
3
Level 2
Spatie media library problem
Hi! I have a working Vue app with Laravel API
Media is 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
Level 2
Solution: If this : 'enable_temporary_uploads_session_affinity' => true, is true => UUID error. if false then OK.
Please or to participate in this conversation.