© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
11 replies
Askancy

must be a file of type: image/*.

I don't understand what I'm doing wrong, I get this error when I try to upload an image:

FileUpload::make('logo')
    ->disk('s3_company')
    ->image()
    ->downloadable(),
FileUpload::make('logo')
    ->disk('s3_company')
    ->image()
    ->downloadable(),

  protected $fillable = [
      'name',
      'website',
      'logo',
      'data_in',
      'data_out',
      'slug'
  ];
  protected $fillable = [
      'name',
      'website',
      'logo',
      'data_in',
      'data_out',
      'slug'
  ];

A message appears in the image that the upload has been completed.

I created the element without the images and it created the record. I edited it, loaded the same images and it loaded them without any problems.... Any ideas?
image.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

The image path field must be a file of type image/*
FilamentFFilament / ❓┊help
2y ago
must be a file of type:application/pdf
FilamentFFilament / ❓┊help
2y ago
the attachment field must be a file of type:
FilamentFFilament / ❓┊help
2y ago
getUrl() must be of type array
FilamentFFilament / ❓┊help
3y ago