F
Filament3w ago
Sydd

Spatie media plugin sometimes dont update file

Dear all, I'm using the Spatie Media Library plugin to upload files to a DigitalOcean Spaces disk. However, about 15% of the records are saved without the required attachment, even though the file was uploaded. I can't seem to identify why this happens. Maybe it's due to files with the same name or uploads happening too quickly?
Has anyone encountered this problem before or has any idea what might be causing it? Any help would be greatly appreciated!
SpatieMediaLibraryFileUpload::make('attachment')
->label(__('general.attachment'))
->disk('spaces')
->acceptedFileTypes(['application/pdf'])
->maxFiles(1)
->maxSize(9120)
->visibility('private')
->required(fn() => app()->environment('production'))
->hint(fn(Get $get) => __('fireBrigade/ppls.records.' . $get('type') . '.attachmentHint')),
SpatieMediaLibraryFileUpload::make('attachment')
->label(__('general.attachment'))
->disk('spaces')
->acceptedFileTypes(['application/pdf'])
->maxFiles(1)
->maxSize(9120)
->visibility('private')
->required(fn() => app()->environment('production'))
->hint(fn(Get $get) => __('fireBrigade/ppls.records.' . $get('type') . '.attachmentHint')),
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?