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}
4
  • 1
    To ask the obvious, the problem is you get the error even when you've selected a file to upload? Is that right? Commented Oct 21, 2013 at 15:16
  • 2
    yes, I select a file and then push the submit button.. Commented Oct 21, 2013 at 15:19
  • 1
    and is no errors in CP publish page? can you publish your template here?
    – Max Lazar
    Commented Oct 22, 2013 at 5:18
  • no errors in CP... Commented Oct 22, 2013 at 5:54

3 Answers 3

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.

1
  • 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) Commented Oct 22, 2013 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

2
  • 1
    Now Accepted as BUG. Waiting for solution. Commented Oct 24, 2013 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
    Commented Dec 17, 2015 at 16:34
0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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