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
I have an application that uses your library. If I try to delete the model that implements HASMEDIA on local storage it is working fine but when I use with S3 I always getting this:
League \ Flysystem \ RootViolationException
Root directories can not be deleted.
I make some searching and the error is here:
Spatie\MediaLibrary\Filesystem.php
->each(function ($directory) use ($media) {
dd($directory);
$this->filesystem->disk($media->disk)->deleteDirectory($directory);
});
When I try to see what are the directory that he is trying to delete is my local storage but I configure to be S3. My upload and conversions are working fine in S3 but in delete, he tries to delete my local where I change?
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I have an application that uses your library. If I try to delete the model that implements HASMEDIA on local storage it is working fine but when I use with S3 I always getting this:
League \ Flysystem \ RootViolationException
Root directories can not be deleted.
I make some searching and the error is here:
Spatie\MediaLibrary\Filesystem.php
When I try to see what are the directory that he is trying to delete is my local storage but I configure to be S3. My upload and conversions are working fine in S3 but in delete, he tries to delete my local where I change?
Beta Was this translation helpful? Give feedback.
All reactions