File Uploader Problem

Hey there!

So I have a FileUploader Input and a Submit Button.

Logic: When Button is clicked, save the file in the database.

Problem: When I select "This input should not be empty " for the File Uploaders, it just doesn’t work!

Has anyone faced the problem before?

one hack could be setting a state when the file is uploaded and then using that state as a validation if the file input is empty or not?

Instead of “this input should not be empty”, check for the “File uploader URL is empty or not”

1 Like

@ankur1 ! Your suggestion is working. Thanks man!

2 Likes

This topic was automatically closed after 70 days. New replies are no longer allowed.