Sorry if I posted this twice, wasn’t sure where I should be posting it.
Input Form Bug - ‘Required’ Validation for File Uploads Does Not Work
Description:
There is a front-end validation bug occurring within the “User Input” block. When a File Upload field (configured for images) is marked as “Required,” the form UI fails to block submission if the user leaves the field completely blank. Instead of halting the run and displaying a required field warning, the system processes the empty field, converts it to an empty JSON array , and successfully passes it to the backend variables.
Steps to Reproduce:
Create a User Input block.
Add a File Upload input and configure it to accept images.
In the Right Sidebar Configuration, toggle the field to Required.
Publish or preview the app.
Fill out all other fields but leave the File Upload field completely blank.
Click Next (Submit).
Expected Behavior:
The front-end form should refuse to submit, keep the user on the current screen, and display a standard UI validation error (e.g., “This field is required”).
Actual Behavior:
The form successfully submits. When reviewing the Run Logs, the system shows that the variable was passed as an empty array: Setting {{variable_name}} to JSON . Because is technically processed as a data object, it circumvents the “Required” lock.
Impact:
This allows users to bypass mandatory file uploads, resulting in empty data being sent to downstream AI models (LLMs/Vision). This causes the models to generate generic/hallucinated text based on missing images, which wastes API tokens and forces developers to build redundant backend Router blocks to catch the string.