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
Hello,
I try to use MediaLibrary PRO with blade(livewire) component and can't find solution for this issue...
My media library config: 'disk_name' => env('MEDIA_DISK', 'media') 'temporary_directory_path' => null (it means storage_path('media-library/temp') by default)
BUT
When I select image for upload, it immediately uploads to "media" disk, NOT to temporary directory!
For example file creats in this path: /Users/.../work/domains/.../storage/app/public/media/269ee9c8ab9dc1878f7b8f2968ae9675/76da0d56b77a20d58b52b1bc48588f33screen-shot-123449-preview.jpg
and EMPTY folder /storage/media-library/temp creats
I could deal with it, but this behavior leads to fatal error when I try to attach media to model while storing:
fopen(/Users/.../work/domains/.../storage/media-library/temp/QAd0KG0Z9nQ3utTTfZVHEmV7cKaf7u1n//269ee9c8ab9dc1878f7b8f2968ae9675.jpg): Failed to open stream: No such file or directory
Can you explain why library uploads file to one directory, and then try to find this file in another directory?!
What can be wrong?
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.
-
Hello,
I try to use MediaLibrary PRO with blade(livewire) component and can't find solution for this issue...
My media library config:
'disk_name' => env('MEDIA_DISK', 'media')
'temporary_directory_path' => null (it means storage_path('media-library/temp') by default)
BUT
When I select image for upload, it immediately uploads to "media" disk, NOT to temporary directory!
For example file creats in this path:
/Users/.../work/domains/.../storage/app/public/media/269ee9c8ab9dc1878f7b8f2968ae9675/76da0d56b77a20d58b52b1bc48588f33screen-shot-123449-preview.jpg
and EMPTY folder /storage/media-library/temp creats
I could deal with it, but this behavior leads to fatal error when I try to attach media to model while storing:
fopen(/Users/.../work/domains/.../storage/media-library/temp/QAd0KG0Z9nQ3utTTfZVHEmV7cKaf7u1n//269ee9c8ab9dc1878f7b8f2968ae9675.jpg): Failed to open stream: No such file or directory
Can you explain why library uploads file to one directory, and then try to find this file in another directory?!
What can be wrong?
Beta Was this translation helpful? Give feedback.
All reactions