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'm experiencing an issue with Spatie Media Library when attempting to store media to a WebDAV disk. I'm able to successfully store files using Laravel's built-in Storage::disk('webdav') function, but when using addMedia() from Spatie Media Library, I receive the following error:
Spatie\MediaLibrary\MediaCollections\Exceptions\DiskCannotBeAccessed: Disk named webdav cannot be accessed.
I've configured the webdav disk in config/filesystems.php with correct WebDAV credentials and base URI. When I try to run this code, I receive the error above.
This discussion was converted from issue #3784 on February 14, 2025 13:29.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
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
-
Hello,
I'm experiencing an issue with Spatie Media Library when attempting to store media to a WebDAV disk. I'm able to successfully store files using Laravel's built-in Storage::disk('webdav') function, but when using addMedia() from Spatie Media Library, I receive the following error:
Spatie\MediaLibrary\MediaCollections\Exceptions\DiskCannotBeAccessed: Disk named
webdav
cannot be accessed.I've configured the webdav disk in config/filesystems.php with correct WebDAV credentials and base URI. When I try to run this code, I receive the error above.
$model->addMediaFromString('test')->usingFileName('test.txt')->toMediaCollection('test', 'webdav');
I would appreciate any help or guidance on how to resolve this issue.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions