© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
29 replies
Mark Chaney

Filenames and Spatie

I don't want to save original filenames, they cause problems, especially long ones causing errors like below. How can I just use dynamically generated ones and never store the original filename?
SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'file_name' at row 1
SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'file_name' at row 1
. i know there is an option to preserver original filenames, but i don't want them to be saved at all because of issues above.
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 and Spatie
FilamentFFilament / ❓┊help
3y ago
FileUpload visibility('private') and original filenames
FilamentFFilament / ❓┊help
10mo ago
Spatie roles and permissions
FilamentFFilament / ❓┊help
3y ago
RichEditor and Spatie Media Library
FilamentFFilament / ❓┊help
5mo ago