[div wfd-id="60"]Dear support [div wfd-id="60"]I have following problem by using a a custom file save with a variable.

is set in a custom PHP field before the upload.{var:codenr}

I can call {var:codenr} and there is the right text in. Suddently the file will be saved as
{date}_{var:logoup.file.name}. {var:logoup.file.extension}
without {var:codenr}.

is set in a custom PHP field before the upload.{var:codenr}

I can call {var:codenr} and there is the right text in. Suddently the file will be saved as
{date}_{var:logoup.file.name}. {var:logoup.file.extension}
without {var:codenr}.
[div wfd-id="67"]I digged a bit deeper in there is an issue with the
$function['filename_provider']it is every time NULL. On \wp-content\plugins\chronoforms\admin\chronoforms\functions\upload\upload_output.php Line 30
if(!empty($function['filename_provider'])){
$this->set($function['name'].'.file.fullname', \G3\L\Upload::get($name, 'name'));
$this->set($function['name'].'.file.name', $fname);
$this->set($function['name'].'.file.extension', $ext);
$vfilename =$fname. $this->Parser->parse($function['filename_provider']) . '.' . $ext ;
}
did you disable the upload files in the form settings ?
I tested this here and the file was named correctly!
I tested this here and the file was named correctly!
if you do not disable it then the files will be uploaded there as well, so disable that to be able to use your custom upload action settings!
You need to login to be able to post a reply.