Used the modified name after upload Upload

Use the modified file name after upload in ChronoForms.

Overview

The uploaded file name is modified by CF, making it unavailable for use in custom PHP code.
Access the modified file name from the $form->files array using a Custom Code action with debug output to identify the correct parameter.

Answered
pr prinect 26 Jan, 2015
Hello,

When I upload a file, the name is modified (ex: étoile.pdf---> toile.pdf), is it possible to get this name modified by chronoform, for use it in a variable php in a custom codes ?

Thank you

Sorry but my english is very bad, i'm french 😉
Gr GreyHead 26 Jan, 2015
Hi prinect,

The file name should be available in the $form->files array. If you don't see in the Debugger output add a Custom Code action with this Debug code to get the exact parameter name.
<?php
echo'<div>$form->files: '.print_r($form->files, true).'</div>';
?>

Bob
pr prinect 26 Jan, 2015
Answer
Many thank's BOB !!! You are the best 😃

JL
This topic is locked and no more replies can be posted.