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.

question about stand alone entry form (saef) uploads via {custom_fields} {if file}?

February 03, 2009 10:19am

Subscribe [2]
  • #1 / Feb 03, 2009 10:19am

    Dave Rau

    85 posts

    Hey all,

    I’m working on an SAEF that’s got a file upload field using Mark Huot’s file extension. I’m trying to do something like this, but I’m not sure how I should go about it:

    {custom_fields}
    
        {if file}
        <input type="file" id="{field_name}" name="{field_name}" value="{field_data}" />
        {/if}
    
    {/custom_fields}

    But the “if file” piece seems to be ignored. How can I reference file upload boxes in the custom_fields code loop/block?

  • #2 / Feb 18, 2009 5:20pm

    LynneL

    239 posts

    I don’t think your File custom fields are supposed to automatically work with SAEF.

    I think you need this LG SAEF File Upload extension, and “hard code” the correct info into your SAEF. That’s what I’m working on right now, saw your question, thought I would answer it in case this helps.

    Good luck!

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

ExpressionEngine News!

#eecms, #events, #releases