file upload not send in email and not saved into the folder

Repitol 16 Jan, 2017
Hi Bob and the team, can you help ?
Today my form doesn't send the upload file anymore
and nothing is saved into the folder I set into the event tab configuration
the upload field is called "envoi"
I set into event (On submit)
enabled : yes
Fields Configuration : envoi:jpg-png-gif-tiff-Pdf-doc-docx-zip-rar-gzip
Upload Path : /var/www/....(complete root)..../web/fichiers/

here's the debug report
Data Array:

Array
(
    [option] => com_chronoforms
    [tmpl] => component
    [chronoform] => Envoi
    [event] => submit
    [Itemid] => 
    [envoi_fichier] => 
    [input_textarea_15] => 
    [nom] => John Doe
    [email] => john@gg.fr
    [recaptcha_challenge_field] => 03AHJ_VusQrNEokov6ojJ5nDHT2erWSRX1wWF0dqLTK1_CwAY7ThaZnvawiSjMD_wkdynaGZ05EwHCy2EKutm_5YQydcIncMn9VKHO5-8jvJaWMr6ewlMe4GcWDFVo0xVIERuHP07GkZN6XqRVCUJtY6BIAOZ0CSAsGJRFs37AhuA-VK5ha5AJJlZODiUA58a_UOIkG0gQ6wV9
    [recaptcha_response_field] => 4100 piave
    [envoi] => Envoyer
    [1cfe4326f05cafc39dbbaf6e91974529] => 1
    [_PLUGINS_] => Array
        (
            [upload_files] => Array
                (
                )

        )

)

Validation Errors:

Array
(
)
Repitol 16 Jan, 2017
well... I found my mistake 😶 I missmatched upload field name which was "envoi_fichier" and not "envoi"
file is correctly saved into the folder I set
just the file is not attached to the email
I have to investigate a little more to fix that
GreyHead 16 Jan, 2017
Hi Repitol,

What has changed on the site that might cause a problem like this? Have the server security settings been updated?

Please temporarily add a Custom Code action to the on Submit event with code like this to see if the file is being uploaded at all
<?php
echo '<div>$_FILES: '.print_r($_FILES, true).'</div>';
?>
and post the output here.

Bob
Repitol 16 Jan, 2017
1 Likes
It's okay now, same error in the email event tab
problem solved
Repitol 16 Jan, 2017
Bob,
yes, this Friday our VPS servor made a complete backup for technical issue and I think the problem is there
CF4 configuration was corrupted

here's the result now
$_FILES: Array ( [envoi_fichier] => Array ( [name] => 000763.pdf [type] => application/pdf [tmp_name] => /var/www/clients/client1/web60/tmp/phpytilM5 [error] => 0 [size] => 15920 ) )
zaplcgn 19 Feb, 2018
I have the same problem
​
if i enter your code The result will be
​
$_fileS:
​
no more information, where is the mistake?
zaplcgn 19 Feb, 2018
solved.. i found the solution in another thread
This topic is locked and no more replies can be posted.