filament/forms
v3.2.116
v11.27.2
v3.5.4
PHP 8.3.12
The FileUpload component when set as multiple() sometimes skips some files if the relation manager has ->poll().
In this scenario I have an action opening a modal with the FileUpload in its form and the creation of one entities for each uploaded file (within the action itself).
The Resource, then, has a relationManager with the entities created in the above-mentioned action.
If in the relationManager we add a ->poll('5s') then the issue appears, if we don't it works flawlessly.
I've created a repo with the two versions of the Resources so you can try it out both the working and the non-working version.
Please find the repository at the following URL, I've added a little instruction and additional information in the README and it also is shipped with some test files to be uploaded, for your convenience.
https://github.com/danilogiacomi/filamentFileUploadProblem
All the file uploaded to be present
Using the provided repository, got to /admin/polling-orders create a "New polling order", use the "Mass upload images" button to upload mulitple files (the repo also contains 32 sample files in the "exampleFiles" directory.
Note that the /admin/orders resource, which doesn't have the ->poll() in the resourceManager works flawlessly
https://github.com/danilogiacomi/filamentFileUploadProblem
N/A
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too