Attachment file not working

bubila 06 Jun, 2014
Hello there, I've created a form that helps people apply for a job, but the fields curriculum or photo that should be attached to the email are not being sent. Should I upload them to the file system even if I don't actually need it, in order to attach each file to the email? I've added the list of the fields to be attached to the email in the attachment fields (as you can see in the pic attached), but nothing happens, I've tried to upload the files into the system but I get the error "could not create directory" even if it already exists (permissions set to 777). Moreover, when I tried to install Chronoforms V4 on Joomla 3.3 in didn't work, should I upgrade to CF5 on websites that works on Joomla 3.3?Thanks a lot
Elisa
GreyHead 06 Jun, 2014
Hi Elisa,

The latest release of ChronoForms v4 for Joomal 3 runs on Joomla 3.3 with no problems.

Do you have an Upload Files action in you form on Submit event? What settings have you used there?

Please add a Debugger action to your form On Submit event and copy and paste the debug output here.

Bob
bubila 07 Jun, 2014
Hi Bob,
yes I added an upload file action, these are the settings:
in files config:
curriculum:doc-pdf-ppt
foto:jpg-gif-png
altridoc:ppt-doc-pdf-jpg-gif-png

then I added the absolute path (http://www.MYDOMAIN.it/test/uploads)

I left the rest of the settings as they were.
I'm pretty sure I'm missing something but I don't know what.
Despite all my trials, I still get the error "Couldn't create upload directroy: http://www.biot.it/test-biot/uploads" The folder uploads already exists an is set to 777, I also tried to delete it in order to let the action create it but still the same error, and the email is not being sent because of the error.
Could it be that something is missing in the php setting of the hosting service that keeps the system from working properly? I've done everything you wrote on the tutorials, look for solutions on the forum and tried everything I could but still it's not working😟 Even if I don't upload file I still get the same error.
bubila 07 Jun, 2014
I forgot, in the Html Render from action form method is set to File, as suggested
Thanks!
GreyHead 07 Jun, 2014
Hi Elisa,

There's a problem with the path - http://www.MYDOMAIN.it/test/uploads is a URL not a folder path. That will look more like home/public_html/test/uploads

Bob
bubila 07 Jun, 2014
Hi again Bob,
thanks a lot,...when I read absolute path I don't know why I thought about a direct URL.. guess it's time to go on vacation😀
Now it works like a charm😀 guess I owe you at least one coffee!!
Thanks again
have a great time
elisa
GreyHead 07 Jun, 2014
Hi elisa,

I've done the same myself. They are both often described as 'paths'.

Bob
bubila 23 Jun, 2014
Hi there,
sorry to bother you again but even though the file is correctly attached to the email, it's not saved on the server, is there some particular setting I may have missed?
here are my settings in the file upload action:

Enabled: yes
Files config:
curriculum:pdf-doc
foto:jpg-gif-png
altridoc:ppt-doc-pdf-jpg-gif-png
Upload path: public_html/site-uploads/cv/
Max file size:2000

In the render form action settings Form method is set to File

Thanks!
Elisa
GreyHead 23 Jun, 2014
Hi Elisa,

Please drag a Debugger action into the On Submit event, then submit the form and post the debug results here.

I'd be very surprised if they aren't being saved on the server somewhere - just maybe not where you expected.

Bob
bubila 23 Jun, 2014
Hi Bob, unfortunately this is the first thing I've done and the result is this:
Array
(
    [curriculum] => Array
        (
            [name] => 20140623140743_etichettaVivaio.pdf
            [original_name] => etichettaVivaio.pdf
            [path] => public_html/test-biot/uploads/biot/20140623140743_etichettaVivaio.pdf
            [size] => 507281
            [link] => public_html/test-biot/uploads/biot/20140623140743_etichettaVivaio.pdf
        )

)


the fact is that in the mentioned folder there is no file😟(
bubila 23 Jun, 2014
got it!!!! the path I've set was wrong.., instead of public_html/... I had to add a couple more folder that were before public_html, now I found all the attachments... sorry for your time😀
GreyHead 23 Jun, 2014
Hi Elisa,

Good to hear - I was just wondering where they might be.

Bob
bubila 23 Jun, 2014
I thought about it too, but on this server there is a strange hierarchy of folders so I thought public_html was the root, but as a matter of fact it wasn't and I didn't notice that a new public_html folder was created. Sometimes we just need a hint to get things done😀
This topic is locked and no more replies can be posted.