temporary upload file

When selecting the file for uploading, while it's loading for a preview, the file is stored in the livewire-tmp folder. If the form is successfully completed (record created or updated), the file is handled properly. BUT, if I for example start to create a new record, or edit existing record, and change the uploaded file (select new), the new file is stored in livewire-tmp, and then if I cancel the action and go back to the homescreen or whatever, the file remains in the livewire-tmp folder. This is an issue. How do I go about handling this?
2 Replies
awcodes
awcodes8mo ago
You don’t have to handle it. Livewire garbage collects anything in tmp after 24 hours and deletes it.
BloodDrunk
BloodDrunkOP8mo ago
Aha, okay thanks, that makes sense

Did you find this page helpful?