How to replace the original file, imageEditor

I use FileUpload imageEditor.

How to replace the original file, not create a new file again with v1, v2, v3, etc.?

Forms\Components\FileUpload::make('file_name')
  ->deletable(false)
  ->disk(fn(?Media $record) => $record->disk)
  ->preserveFilenames()
  ->image()
  ->imageEditor()
  ->imageEditorAspectRatios([
      null,
      '16:9',
      '4:3',
      '1:1',
  ]),
sasas.png
Was this page helpful?