Forums

overriting issue with custom file variable name

Collie-IT 29 Oct, 2020
[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}.
Collie-IT 29 Oct, 2020
[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 ;

}
Max_admin 29 Oct, 2020
did you disable the upload files in the form settings ?

I tested this here and the file was named correctly!
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Collie-IT 30 Oct, 2020
[div wfd-id="67"]Suddently not.
​[div wfd-id="67"]
Max_admin 30 Oct, 2020
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!
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
You need to login to be able to post a reply.