Hi,Can anyone explain in detail how I can set up a file upload so it can create a folder with other fields data in its name... in ChronoForms v8?For example: When John Doe uploads the file john.jpg, that file should go to .../images/uploads/{data:name}_{data:date}/john.jpg*(name and date are Field Names)
I have attached my current settings, but upload images directly to images/uploads/ without creating the subfolder.
Thanks in advance...

The upload directory must exist before the file is saved there, it will not try to create it first, you can do this yourself using a PHP
You can use this code to create the folder:
if (!file_exists('path/to/directory')) {
mkdir('path/to/directory', 0777, true);
}
But for this to work, you need to use the new "Pre Submit" action, this will allow the code above to run before the file field upload is processed, here is how it should be done:
Ok, and how can I use form field values for 'path/to/directory' in this PHP script?
Is this correct for example:
if (!file_exists('path/to/directory/{data:name}_{data:surname}')) {
mkdir('path/to/directory', 0777, true);
}
And for the Upload directory
'full/path/images/uploads/{data:name}_{data:surname}' ?
no, in PHP you need to use $this->data("field_name") to get the data value, so the code should be:
'path/to/directory/'.$this->data("name").'_'.$this->data("surname")
by the way, the "pre submit" action is available in the next update, which is supposed to be published in the next few days