Filament: Editing file upload - not previewing

After form uploaded, the uploaded file moved from public to s3. Editing Uploaded file not previewing
Here is my form snippet

Forms\Components\FileUpload::make('ads_video') ->label('Ads Video') ->directory('banners/video') ->disk('public') // Matches filesystems.php ->visibility('public') ->afterStateUpdated(function ($state, $set) { $flag = !empty($state) && count( (array) $state) > 0; if ($flag) { $set('larger_display_screenshots', []); $set('smartphone_screenshots', []); } }) ->acceptedFileTypes(['video/mp4', 'video/webm',]) ->maxSize(50000) // 50MB ->helperText('Drag and drop video file to upload')

#EditRecord #FileUpload
Was this page helpful?