How do I implement an Ajax implementation on a Channel Form, especially when there is a file needed to be uploaded?
I look at an example, but I don't think I really understand how it works.
ExpressionEngine® Answers is a question and answer site for administrators, end users, developers and designers for ExpressionEngine® CMS. It only takes a minute to sign up.Sign up to join this community
I tested this and it works just fine. Be sure to include the
title input with valid data. If you're still having trouble, be sure to check the console log
data object. If you dig around you'll probably find the pertinent error.
Also, because you didn't specify, be sure you're using an instance of EE that supports Channel Form instead of Safecracker. I just checked the docs to 2.7.3 and it looks like files upload in Channel Form were included in 2.7.*.
The File fieldtype is now compatible with Channel Form.
So if you have an instance that's older, file upload via channel form might not work.