-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
Form Fieldtype "Files" errors "The Files Field must be an array" on sending #396
Comments
I'm just noticing there's now an assets field and a files fieldtype? It's the latter one you're working with? What is the difference with the assets field? Do you know? Trying to understand what's going on here. |
The files fieldtype doesn't have a published view in Peak. As I never knew it existed and also don't understand what it does as opposed to the asset fieldtype. What if you create a view for this and replicate the logic that Peak ships for the asset fieldtype. Does it work then? |
Ah ok, so this is what it's for: statamic/cms#9084 I'd just duplicate the assets view and call it files.antlers.html. Please let me know if that solves it. If so I can ship it by default. |
You can probably also just put this into
|
Yeah I'm working with the files fieldtype. Its the same like the asset fieldtype with the only difference, that the asset is not getting stored – only sent by mail. I have a customer with exactly that requirement where I was pretty happy to find out, that this is already possible out of the box with statamic.
Me saying "Its the same like the asset fieldtype" could have already brought me the idea myself, that I could simply reference the assets fieldtype in 'files.antlers.html'. Sorry for not thinking along, was a long day on monday. |
No worries and good to hear! |
Bug description
When I use a fields fieldtype inside my forms (either max files set to n or null), the form can't be send.
I've tried on a fresh peak install with max files set to 1 or also null.
The error is similar to this issue: #366 only difference to the other issue: when I use the asset fieldtype, the error is not showing.
How to reproduce
Use fresh peak install, add Files Field to existing form blueprint and try to send the form.
Logs
Environment
Additional details
No response
The text was updated successfully, but these errors were encountered: