Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A lot of empty folders are generated on local disk / public and not removed #3736

Open
fkerber opened this issue Dec 5, 2024 · 0 comments
Open

Comments

@fkerber
Copy link

fkerber commented Dec 5, 2024

I have searched for this issue and found several that sounded similar, but all of them should have been fixed in the past, but despite having the newest version, I still see this issue and have no idea what I might be overlooking.

I'm using Media Library (with Pro) in version 11.10.1 (pro 6.1.0) and store all uploaded files in a separate local disk. Everything is apparently working fine. However, in my standard local disk (/storage/app/public) I find thousands of (mostly empty) folders named with a UUID such as a57898913f102140ad9cbee23d8bd5c9.
Apparently, for every upload, such a folder is created. Running artisan media-library:delete-old-temporary-uploads is not removing them. I cannot find corresponding entries in the media table in my database.

I'm not sure which setting might be helpful, so I quote a few here:

'disk_name' => env('MEDIA_DISK', 'public'),
'media_model' => Media::class,
'temporary_upload_model' => Spatie\MediaLibraryPro\Models\TemporaryUpload::class,
'generate_thumbnails_for_temporary_uploads' => true,
'file_namer' => Spatie\MediaLibrary\Support\FileNamer\DefaultFileNamer::class,
'path_generator' => Spatie\MediaLibrary\Support\PathGenerator\DefaultPathGenerator::class,
'moves_media_on_update' => false,
'temporary_directory_path' => null,

Please let me know if you need any further info.

@fkerber fkerber changed the title A lot of empty folders is generated on local disk / public and not removed A lot of empty folders are generated on local disk / public and not removed Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant