FileUpload reset after locale switch
Description
In "Edit/Create" form which has a "FileUpload" component, the "FileUpload" content/file will reset/clear when we switch the locale using the "LocaleSwitcher" action button.
Steps to reproduce
1. Create a resource with "Create" and "Edit" pages, with translation
2. Add a "FileUpload" component to the resource form (note that the field/column is not translatable)
3. Open the "Create" or the "Edit" page (similar issue for both pages)
4. Choose a file
5. Switch the locale
=> The "FileUpload" will reset
Expected Behavior
1. If the "file" column is not translatable:
When switching the locale the "FileUpload" field must not change its state
2. If the "file" field is translatable:
When switching the locale the "FileUpload" field must change its state to the new edited locale value, not resetting/clearing every its state
7 Replies
Thanks for the detailed explanation. Sounds like a bug to me. Can you please open an issue on GitHub?
I will, but can we open an issue without linking to a repository?
As the issue is clear, and making a new project will will take some time
No, because "making a project will take some time". And if you don't do it that time is on us for every issue that is reported.
Ah ok, I see
I will do it
Thanks!
Issue opened 👌
https://github.com/filamentphp/filament/issues/9791
GitHub
FileUpload reset after locale switch · Issue #9791 · filamentphp/fi...
Package filament/filament Package Version 3.0-stable Laravel Version 1.10 Livewire Version No response PHP Version 8.1 Problem description In "Edit/Create" form which has a "FileUplo...
Thanks!