Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

JayZeee's avatar

Livewire: Validate rule(s) before creating a temporary file upload

The Livewire.php file contains a set of rules temporary_file_upload. These rules are validated after the file has been stored to the temporary directory. Would it be possible when creating a simple upload input, to validate e.g. the mimetype before it automatically starts uploading the file to the temporary place?

0 likes
4 replies
OussamaMater's avatar

@JayZeee You can't really do so, if it's server side than the file has to go to the server and be placed somewhere :)

1 like

Please or to participate in this conversation.