You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Formie through headless GraphQL API queries the file field won't submit when it has a max or a minimum file size set in the CMS.
Have attached the initial error messaging which references "Undefined array key \"path\" outlined in the file: "/var/www/html/vendor/verbb/formie/src/fields/FileUpload.php".
Just to clarify form file submissions go through correctly when a file upload field does not have a min or max file size set.
Ah yes, now that's a tricky situation, as these are data-provided files, we don't actually have a mechanism to validate their size. That would mean creating a temp version of the file, evaluating that, and then potentially removing it.
As such, for now I've fixed this error, but min/max sizes for GraphQL isn't something we enforce.
Fixed for the next release. To get this early, run composer require verbb/formie:"dev-craft-5 as 3.0.20".
I'd recommend implementing what Formie does on your client-side code.
Describe the bug
Using Formie through headless GraphQL API queries the file field won't submit when it has a max or a minimum file size set in the CMS.
Have attached the initial error messaging which references
"Undefined array key \"path\"
outlined in the file:"/var/www/html/vendor/verbb/formie/src/fields/FileUpload.php"
.Just to clarify form file submissions go through correctly when a file upload field does not have a min or max file size set.
Error messaging
Here is the Data I used specifically to have reference of:
There is also a seperate issue when trying to access the
volumeHandle
:"Calling unknown method: verbb\\formie\\fields\\FileUpload::getVolume()"
Thanks
Steps to reproduce
Form settings
Craft CMS version
5.5.7
Plugin version
3.0.20
Multi-site?
No
Additional context
Uses Headless mode GraphQL API.
The text was updated successfully, but these errors were encountered: