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
1 Reply
Dennis Koch
Dennis Koch3mo ago
Check the DevTools for console errors. Might be CORS if you haven't set that up

Did you find this page helpful?