Invisble captcha not working on webforms with a file upload

Created on 23 January 2025, 3 months ago

Problem/Motivation

File uploads on webforms ar blocked causing the error:"
File upload in progress. Uploaded file may be lost.
Click OK to submit the form without finishing the file upload or cancel to return to form.
"

Steps to reproduce

Create a webform with a file upload (file, document, image, ...-
Add the "reCAPTCHA v3 (invisible)" handler.
Visit the webform in a browser that will require you to complete the recaptcha (not logged in as admin, not logged in to gmail, ...)
Try to upload a file: The upload field should at this point be replaced with a visual representation of the uploaded file, but it is not.
Submit the form: you will now get the error "File upload in progress. Uploaded file may be lost.
Click OK to submit the form without finishing the file upload or cancel to return to form."

Proposed resolution

Turn off auto file upload for all file fields when invisble recaptcha is added?
Not really sure if this is possible nor if this is the proper solution...

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇧🇪Belgium weseze

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024