Forums

2 fields for file upload - no email attachment

rsoroa 25 Jan, 2012
I checked twice and everything is right on my form. I have 2 fields for file upload and all is fine, see debug below, but fact is, i DO NOT receive the file in the email. Email is fine, even showing the name of files, but no attachment.

first sent to my gmail account, then changed for an email from the same site domain, same thing.

any hint?
thanks

ps. i am on a mac, and realized mac can save a file without showing extension, and these files are not being accepted, can see in debug lines (File : fileupload2 extension is not allowed.) and of course extension is fine.

Debug Data
Upload routine started for file upload by : fileupload1
/hermes/bos/web251/b2511/ipg.fuicombr/fui/portal/components/com_chronoforms/uploads/consultasresidenciaisonline/20120125125806_dev tec1.jpeg has been uploaded OK.
Upload routine started for file upload by : fileupload2
/hermes/bos/web251/b2511/ipg.fuicombr/fui/portal/components/com_chronoforms/uploads/consultasresidenciaisonline/20120125125806_talao.jpg has been uploaded OK.
4
An email has been SENT successfully from (Admin) to ???@gmail account.
GreyHead 25 Jan, 2012
Hi rsoroa ,

What do you have in the 'Attachments fields name' box in the Email configuration?

Bob
rsoroa 25 Jan, 2012
oops, my fault, it's working and i got 2 files. For some reason i do not receive jpg and jpeg files

did not test all files types, but got pdf fine
GreyHead 25 Jan, 2012
Hi rsoroa,

The extensions are case sensitive (possibly a bug) so you need JPG-jpg-JPEG-jpeg

Bob
rsoroa 25 Jan, 2012
my files are all lower case, I added JPG and JPEG just in case, same result

strange, jpg, JPG, jpeg and JPEG, png also does not work, other files yes

and like 80% of files to be upload are jpg and jpeg files! 😲
GreyHead 25 Jan, 2012
Hi rsoroa,

Please post a screenshot of the extensions box, or just copy and paste the entry.

Bob
rsoroa 25 Jan, 2012
here we go:

events>on submit upload files (2), files field:

fileupload1:bmp-cdr-doc-docx-dwg-gif-JPG-jpg-JPEG-jpeg-pdf-rar-zip,fileupload2:bmp-cdr-doc-docx-dwg-gif-JPG-jpg-JPEG-jpeg-pdf-rar-zip
GreyHead 25 Jan, 2012
Hi rsoroa,

Looks good to me. I don't know why jpgs don't work :-(

Try dragging a Debugger action into the OnSubmit event (you may need to switch to Advanced mode, or make a copy of the form and switch that to advanced mode to do this). Submit the form and copy and paste the output here.

Bob
rsoroa 26 Jan, 2012

Array
(
    [nome] => ads
    [email] => vendas@fengshui.com.br
    [telefone] => as
    [celular] => as
    [endereco] => asds
    [cidade] => asd
    [estado] => AL
    [cep] => asda
    [mapa] => asd
    [datamudanca] => asda
    [m2] => ads
    [nopessoas] => asd
    [tipolocal] => Apartamento
    [quartos] => 1
    [andares] => 1
    [banheiros] => 1
    [piscina] => Sim
    [pessoas] => ads
    [melhorar2] => asd
    [fileupload1] => 20120125193622_ENDERECO.docx.pdf
    [fileupload2] => 20120125193622_dev tec1.jpeg
    [plantanao] => 
    [enviar] => Clique para Enviar
    [ce7442a21f3b55bba6df4ccb3d11687e] => 1
    [option] => com_chronoforms
    [chronoform] => teste
    [event] => submit
    [Itemid] => 
    [_PLUGINS_] => Array
        (
            [upload_files] => Array
                (
                    [fileupload1] => Array
                        (
                            [name] => 20120125193622_ENDERECO.docx.pdf
                            [path] => /hermes/bosweb/web251/b2511/ipg.fengshuicombr/fengshui/portal/components/com_chronoforms/uploads/teste/20120125193622_ENDERECO.docx.pdf
                            [size] => 45069
                            [link] => http://www.fengshui.com.br/components/com_chronoforms/uploads/teste/20120125193622_ENDERECO.docx.pdf
                        )

                    [fileupload2] => Array
                        (
                            [name] => 20120125193622_dev tec1.jpeg
                            [path] => /hermes/bosweb/web251/b2511/ipg.fengshuicombr/fengshui/portal/components/com_chronoforms/uploads/teste/20120125193622_dev tec1.jpeg
                            [size] => 506752
                            [link] => http://www.fengshui.com.br/components/com_chronoforms/uploads/teste/20120125193622_dev tec1.jpeg
                        )

                )

        )

)



Array
(
    [nome] => ads
    [email] => vendas@fengshui.com.br
    [telefone] => as
    [celular] => as
    [endereco] => asds
    [cidade] => asd
    [estado] => AL
    [cep] => asda
    [mapa] => asd
    [datamudanca] => asda
    [m2] => ads
    [nopessoas] => asd
    [tipolocal] => Apartamento
    [quartos] => 1
    [andares] => 1
    [banheiros] => 1
    [piscina] => Sim
    [pessoas] => ads
    [melhorar2] => asd
    [fileupload1] => 20120125193622_ENDERECO.docx.pdf
    [fileupload2] => 20120125193622_dev tec1.jpeg
    [plantanao] => 
    [enviar] => Clique para Enviar
    [ce7442a21f3b55bba6df4ccb3d11687e] => 1
    [option] => com_chronoforms
    [chronoform] => teste
    [event] => submit
    [Itemid] => 
    [_PLUGINS_] => Array
        (
            [upload_files] => Array
                (
                    [fileupload1] => Array
                        (
                            [name] => 20120125193622_ENDERECO.docx.pdf
                            [path] => /hermes/bosweb/web251/b2511/ipg.fengshuicombr/fengshui/portal/components/com_chronoforms/uploads/teste/20120125193622_ENDERECO.docx.pdf
                            [size] => 45069
                            [link] => http://www.fengshui.com.br/components/com_chronoforms/uploads/teste/20120125193622_ENDERECO.docx.pdf
                        )

                    [fileupload2] => Array
                        (
                            [name] => 20120125193622_dev tec1.jpeg
                            [path] => /hermes/bosweb/web251/b2511/ipg.fengshuicombr/fengshui/portal/components/com_chronoforms/uploads/teste/20120125193622_dev tec1.jpeg
                            [size] => 506752
                            [link] => http://www.fengshui.com.br/components/com_chronoforms/uploads/teste/20120125193622_dev tec1.jpeg
                        )

                )

        )

)



Debug Data

    Upload routine started for file upload by : fileupload1
    /hermes/bosweb/web251/b2511/ipg.fengshuicombr/fengshui/portal/components/com_chronoforms/uploads/teste/20120125193622_ENDERECO.docx.pdf has been uploaded OK.
    Upload routine started for file upload by : fileupload2
    /hermes/bosweb/web251/b2511/ipg.fengshuicombr/fengshui/portal/components/com_chronoforms/uploads/teste/20120125193622_dev tec1.jpeg has been uploaded OK.
    4
        An email has been SENT successfully from (Admin)consultas@fe
.....


i tried a png file and got this message: (100% sure png file is there and it is lower case)

Upload routine started for file upload by : fileupload1
File : fileupload1 extension is not allowed.
4



rsoroa 26 Jan, 2012
things are crazy, now even on a different browser i get a strange message, probably from joomla saying It was not possible to initiate mail function...

and form is not sent
GreyHead 26 Jan, 2012
Hi rsoroa,

You haven't included -png in the list of extensions for fileupload1 so that message is correct.

The Email successfully sent message tells us that ChronoForms has passed the Email to the Joomla! mailer and got an 'OK' message back - unfortunately the Joomla! mailer doesn't always give correct messages :-(

Test first with a very simple email using only Static inputs to check if your emails are sending OK. Then add a single file input to make sure that the attachment is working OK. Remember that you need to add the Attachment input name in the Email configuration.

Bob
menchee 28 Jan, 2012
Hi rsoroa,

Make sure the file's name to be upload doesn't contain spaces.

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