F
Filament2mo 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),
]),
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.
No description
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?