ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Problem with Safecracker File in a second Matrix field not uploading file

July 13, 2013 2:42am

Subscribe [1]
  • #1 / Jul 13, 2013 2:42am

    ipixel (Australia)

    158 posts

    I have a Safecracker form where I have more than one Matrix field in the form. Each of these Matrix fields has a Safecracker File field as the first column. When testing the form out I can only upload files into the first Matrix field. I get no inline errors, just an empty field in the second Matrix field.

    EE v2.5.5, Matrix v2.5.6, Safecracker File v2.1

    Has anyone come across this problem before. Sample template code for the two fields below:

    {exp:safecracker 
            channel="awaentry" 
            return="entries/nomination/URL_TITLE/success" 
            id="award-entry-form"
            class="standard-form"
            url_title="{segment_3}"
            include_jquery="no"
            author_only="yes"
            error_handling="inline"
        }
      
        {global_errors}<div class="alert">
            {error}
        </div>{/global_errors}
    
        {field_errors}<div class="alert">
            {error}
        </div>{/field_errors}
    
        <div class="field">
            <span class="label">Screen Grabs (Desktop)</span>
            <div class="formHelp">Please provide a set of screen grabs with details, that can be used for promotional purposes.</div>
            {field:website_screens}
        </div>
    
        <div class="field">
            <span class="label">Screen Grabs (Mobile)</span>
            <div class="formHelp">Please provide a set of screen grabs with details, that can be used for promotional purposes.</div>
            {field:website_screens_mobile}
        </div>
    
        <div class="formControls">
            <button type="submit" class="submit">Save Entry</button>
        </div>
    
        {/exp:safecracker}

    There’s other problems with this combination when it comes to proper error messages being parsed through, but will get this working first.

    Uploading to the second Matrix field works as expected in the EE control panel.

    Would love some assistance as I’m really quite ready to punch someone fair square in the face…this shit should work by now!!!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases