laravel-medialibrary icon indicating copy to clipboard operation
laravel-medialibrary copied to clipboard

UUID Invalid

Open yahya077 opened this issue 3 years ago • 1 comments

Discussed in https://github.com/spatie/laravel-medialibrary/discussions/2786

Originally posted by yahya077 February 16, 2022 I'm trying to upload image to 'api/media-library-pro/uploads' from postman. I get 200 status and success response.

But when i do $model->syncFromMediaLibraryRequest(<response object>)->toMediaCollection('thumb') It returns invalid uuid error. I genarate uuid with uuid.v4() from postman. One of my uuid is 'beb9d892-38bc-4ec3-a9de-5f745c9c307d'.

I'm using media-library-pro and it is works on web page.

How can I sync image from Spatie\MediaLibraryPro\Models\TemporaryUpload to MyModel.

yahya077 avatar Mar 08 '22 08:03 yahya077

Did you find a solution to this? I have the same issue. I have tried enable_temporary_uploads_session_affinity = false in config as some others say this helped, but not for me.

I am using the livewire components and get this error when trying to upload multiple files.

booni3 avatar May 14 '22 13:05 booni3

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.

spatie-bot avatar Sep 15 '22 10:09 spatie-bot

@yahya077 @booni3 although your issue is a year old, it seems like I'm running into the same issue, and I can't really figure out why this is happening. Do you still have the issue? Did you find a solution for it?

joostvanhoof avatar Oct 15 '23 11:10 joostvanhoof