Closed bob2517 closed 1 year ago
Checkbox fix now on 2.12.1 branch.
Checkbox handling added to technical article on ajax form submits in the docs.
Prelim code is now in the core to handle the upgrade. Just need to write the tests and attach the files to the new FormData object which is only being used if files are present. Multipart content type is set automatically to replace the usual header if files are present. This will be a backward compatible upgrade.
Now on the branch. No additional syntax is necessary for file uploads to work in a form which uses ajax-form-submit or preview. Supports multiple property in file tag. Files seem to be arriving on the server ok. It has automatic setting of header "multipart/form-data" when there is a file, otherwise it respects the mime type in the ajax command.
Will play around with it this week to make sure it's adequate on a production site, and do a release next week if all looks good.
Closing pending release.
Noticed yesterday while working on a "contact us" form scenario that values of checkboxes are not being sent - only "on". That needs fixing, default as "on" only if no value set.
Also, check if file uploads are being handled correctly and set this up if not.
This will gets a sooner release than usual, as it is urgently needed.