How can I edit uploaded files in a form?

How to edit uploaded files in a ChronoForms form.

Overview

The issue was caused by using outdated CFv4 code in a newer project, which contained a syntax error.
Use the correct code for your CF version, ensuring proper syntax and compatibility with the current form structure.

Answered
ChronoForms v6
pa patrick.h 29 Jun, 2018
Hi, i don`t understand how to implement the code ( Code is from FAQ: https://www.chronoengine.com/faqs/53-chronoforms/cfv4/cfv4-file-uploads/2637-how-can-i-edit-uploaded-files-in-a-form / PS: there is a syntax error )
​[pre]<?php
$files_array = array([br] 'file_upload_1',[br] 'file_upload_2',[br] 'file_upload_3',[br] 'file_upload_4'[br]};[br]foreach ( $files_array as $v ) {[br] if ( !$form->data[$v] ) {[br] unset($form->data[$v]);[br] }[br]}[br]?>[/pre]
in my project

How can I edit uploaded files in a form? image 1[br]

You need more information?
This topic is locked and no more replies can be posted.