I'm trying to use multiple Safecracker File fields in a Safecracker form.
I tried to use one matrix field with one column - the SC File field. On submission, no rows or files were added.
I thought it would be easier to take Matrix out of the equation so I changed it to 3 separate SC File fields. Now only the first field gets uploaded. I don't see any errors (tried logged in as Super Admin and Non-Super Admin)
My template code is very simple.
{exp:safecracker ...}
{custom_fields}
{if safecracker_file}
{display_field}
{/if}
{/custom_fields}
{/exp:safecracker}
The fields are output correctly, each have unique names.
The following is what is output for each field:
<div class="safecracker_file_set">
<div class="safecracker_file_hidden">
<input type="hidden" name="CUSTOM_FIELD_NAME_3_hidden" value="">
</div>
<div class="safecracker_file_placeholder_input">
<input type="hidden" name="CUSTOM_FIELD_NAME" value="NULL">
</div>
<div class="safecracker_file_input">
<input type="file" name="CUSTOM_FIELD_NAME" value="">
</div>
</div>
Running 2.5.3, but I don't see anything in the changelog that directly mentions something like this. I'd realllllly like to avoid upgrading.