This repository was archived by the owner on Feb 27, 2024. It is now read-only.
This repository was archived by the owner on Feb 27, 2024. It is now read-only.
GravityForms File Upload error 500 #676
Open
Description
REPRODUCE:
When generating a form with gravityforms, add a file upload field and allow file formats like png and jpg
BUG:
when you submit a form with a valid filetype that is the correct filesize, the form submission still fails with the following error:
VM24608:1 POST http://localhost:3000/api/wordpress/gravityForms 500 (Internal Server Error)
When we check out the network response the error message says: This file type is not permitted for security reasons
EDIT:
So the error occurs when next.js tries to execute the query in insertGfFormEntry.js L45