Is there a way to upload file and saving it to database without having to submit the form?

Currently I am trying to upload files from a modal. The files has to be saved permanently after they are selected and without needing to submit the form, as the form has only the field.
5 Replies
toeknee
toeknee3mo ago
You could do it with afterStateUpdated and manually handle the upload. But it's not really advised.
Sebastian
Sebastian3mo ago
Did you find a solution? Having the same requirement...
Thou Blue
Thou Blue3mo ago
I tried using afterStateUpdated, but with multiple files, there was some issue so had to search another way to do so. What happened was, when I uploaded 3 files, 6 files were saved in db. Still working around it.
toeknee
toeknee3mo ago
Did you wait for all to be finished uploading before clicking save?
Thou Blue
Thou Blue3mo ago
Yes, That's what I did.
Want results from more Discord servers?
Add your server
More Posts
Use topbar instead of sidebar also on mobileHello, I would like to disable the sidebar entirely but want to keep my logo in the topbar as well aParameter being null after table actionI have a widget that refreshes the page with a custom parameter. I use this parameter to manipulate Unable to add form actions to modalHi, I've got a resource with a simple form for creating / editing. I've got a table that displays Is it possible to adjust the navigation panel width to be even smaller?I already sent the width of the content to the maximum possible option but there's still so much wasFilament 3 - Multi Tenancy Upload Image ErrorI encountered this error: Unable to retrieve the file_size for file at location: livewire-tmp/GfJyK6Updating Standalone Action's modal description based on the argument passed to the formI have a standalone action that launches a modal. I want to update the modal description based on thSpark Billable Slug redirects to wrong urlI am using the Spark Billing Portal with Filament and everything is working so far, except the rediIs it possible to pre-populate this form with some data?I have a custom widget, with a heading defined like so: ```php <div class="flex items-center justifTrouble with Export/Import in Laravel Filament Admin Panel: 'Login Route Not Found' ErrorHi, I'm currently using the Laravel Filament admin panel for my application. I've been working on geHow can personalize the buttons style for Create, Delete, Cancel, SaveHey guys, i working and configuring a new theme in my project, i inspect the desing and can see the