Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"content" Colum stores escaped JSON-Value if file-upload field is present #2252

Open
xuneXTW opened this issue Jan 21, 2025 · 3 comments
Open

Comments

@xuneXTW
Copy link

xuneXTW commented Jan 21, 2025

Describe the bug

Hi there

It looks like the newest update will do something to my forms if file-upload fields are present.
The stored submissions in the CP are always empty and the "content" field in the submissions table seems to store some escaped JSON value that could not be parsed in the CP-Form.

Steps to reproduce

  1. Add a file-upload field to a form
  2. Submit the form

Form settings

  • Multi-page form: No
  • Submission Method: Ajax
  • Client-side Validation: Yes and No
  • Custom Form Templates: No

Craft CMS version

Craft Pro 5.5.10

Plugin version

3.0.18

Multi-site?

Yes

Additional context

I think this has something to do with the changes made to the MariaDB issues with file-uploads as it seems only to happen on MariaDB 10.x installs.

With 3.0.16 the forms were working properly.

@engram-design
Copy link
Member

We're having incredibly mixed results with MariaDB it seems. For some people encoding is working, others seems like it's not working correctly. We certainly thought things were sorted!

Anyway, I've revamped how File Upload fields update their content to hopefully alleviate this. If you can let me know how you go with this! To get this early, run composer require verbb/formie:"dev-craft-5 as 3.0.18".

@xuneXTW
Copy link
Author

xuneXTW commented Jan 22, 2025

@engram-design thank you! This seems to work at least on my side now. I've tested it local on MySQL8 and on the staging environment on MariaDB 10.6.x. Now the results are stored properly even with or without file-fields in the form

@engram-design
Copy link
Member

Awesome, thanks for confirming!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants