FilamentF
Filament5mo ago
zoli48

Field contains invalid files error

Hello all,

Here is my code:
Fieldset::make(__('Images'))
  ->schema([
      FileUpload::make('images')                                       ->label(__('Images'))
          ->image()                                                    ->disk('s3')
          ->directory(env('APP_ENV').'/images/tickets')
          ->acceptedFileTypes(['image/*'])
          ->imageEditor()
          ->multiple()
          ->openable()
          ->imageResizeMode('cover')
          ->imageResizeTargetWidth('1920')
          ->imageResizeTargetHeight('1080')
          ->moveFiles()
          ->columnSpanFull()
          ->maxSize(32000),
  ]),

If I upload two videos here, I get an error that they are in the wrong format. This is fine, it should be that way. I delete the two videos and then I want to save them. In the browser, it says This field contains invalid files. This is not caused by the application, but by the browser.
Kepernyokep_2025-08-18_103050.png
Was this page helpful?