faxunil's avatar

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

0 likes
3 replies
faxunil's avatar

Hi! Thank YOu for your help, but it isn't the solution for me. I have nice UUID id's Spatie\MediaLibraryPro\Models\TemporaryUpload, 9, f21097db-da83-4e8a-ae80-b81723716984, default,teszt_1.xlsx,teszt_1.xlsx My problem is the uploaded file is joined to the tempupload and i can't change this accoring the docs. Br. Gergely

1 like
faxunil's avatar
faxunil
OP
Best Answer
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.