2

I've send the same question on Ellislab Forum but without answers...

I’m testing the new channel form and i’ve seen that if a file field is flagged as required field the form don’t pass the check.

The form you submitted contained the following errors
The xxxx field is required.
Return to Previous Page 

The same problem also in a grid field or a matrix field that contain a column where file field is flagged as required field.

If I remove the flag (required field) all are ok.

Does anyone have the same problem?

Tested with:

  • Expressionengine v2.7.2

  • Matrix v2.5.8

This is the template:

{exp:channel:form channel="box" return="box/index" entry_id="{segment_3}" class="channel_form" include_assets="yes"}
    {field:box_photohead}
    {field:box_intructions}
    
{/exp:channel:form}
  • 1
    To ask the obvious, the problem is you get the error even when you've selected a file to upload? Is that right? – Stephen Callender Oct 21 '13 at 15:16
  • 2
    yes, I select a file and then push the submit button.. – GMConsultant Oct 21 '13 at 15:19
  • 1
    and is no errors in CP publish page? can you publish your template here? – Max Lazar Oct 22 '13 at 5:18
  • no errors in CP... – GMConsultant Oct 22 '13 at 5:54
0

This could be related to another bug regarding the file field. Why is an un-required field required?

That bug prevents an entry being posted if:

  1. The upload directory is set to a specific directory
  2. A specific file type (e.g. image) is specified.

Changing either of these conditions allow the entry to be submitted.

So I would suggest setting the upload directory to "Any" and the file type to "Any" and see if that makes a difference.

| improve this answer | |
  • I've tested with the "Any" options but this don't resolve the problem. (Note: the File_field.php is updated because the installed version is 2.7.2) – GMConsultant Oct 22 '13 at 12:59
0

This is now also being addressed in an EE bug report. Check for the final answer there as it unfolds.

https://support.ellislab.com/bugs/detail/19837

| improve this answer | |
  • 1
    Now Accepted as BUG. Waiting for solution. – GMConsultant Oct 24 '13 at 4:46
  • Was this resolved for Matrix? We have a matrix with a required file upload. In the CMS all works fine, BUT in {exp:channel:form} uploads or submissions throw the error “column is required.” This is EE v2.8.1 and Matrix 2.5.8. – paulcripps Dec 17 '15 at 16:34
0

It’s accepted as Bug: https://support.ellislab.com/bugs/detail/19837 and it will be Fixed in Upcoming Release.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.