© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago
zainalab

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',
  ]),
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
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

FileUpload imageEditor replace instead of adding v1, v2 to the file
FilamentFFilament / ❓┊help
3y ago
How to replace pre-compiled tailwind css file?
FilamentFFilament / ❓┊help
13mo ago
FileUpload imageEditor()
FilamentFFilament / ❓┊help
2y ago
How to replace default login blade? - how to replace the entire page?
FilamentFFilament / ❓┊help
3y ago