Forums

File not uploaded and/or attached to email

4ice 11 Sep, 2015
Hi all,

I have already read so many topics about this problem, but unfortunately I can not find the solution to my problem.

I have a form with a single file upload field. I also have a files upload action in the submit section prior to the email action. The extensions etc are all set and my debug info doesn't provide any info I can use.

The email itself is normally sent and the name of the uploaded file is present in the body of the email. But there is no attachment.

What am I missing?

I have a few screenshots to show the settings etc.

Hopefully you can help me out.
Thanks in advance.
GreyHead 11 Sep, 2015
Hi 4ice,

Please add file28 to the Attachments box in the Email action.

Bob
4ice 11 Sep, 2015
Hi Bob,

thank you for your reply.

I already have, see attached screenshot.
4ice 11 Sep, 2015
Hi Bob,

I forgot to say that if I can provide any more info that can solve my problem, please let me know.

Thank you for your support.
GreyHead 11 Sep, 2015
Hi 4ice,

Is the file uploading? I suspect not as there is no output from the Files Upload action in the Debugger output. Please temporarily add a Custom Code action to the On Submit event with this code in it and copy and paste the output here.
<?php
echo'<div>$_FILES: '.print_r($_FILES, true).'</div>';
?>

Bob
4ice 14 Sep, 2015
Hi Bob,

indeed it doesn't seem to upload.

The code outputs:
$_FILES: Array ( )

So an empty array.

I use the default upload path (Chronoforms uploads/form_name/ directory) and the rights are set to 777 just to be sure.

Any thoughts?
GreyHead 14 Sep, 2015
Answer
Hi 4ice,

Please check the action setting in the HTML (Render form) action and check that it is set to File.

Bob
4ice 14 Sep, 2015
**embarrassed😶 ** Sometimes you just want to burst into flames...**😶 embarrassed**

Thank you very much for your help Bob 😉
This topic is locked and no more replies can be posted.