Contact us with file upload

Issues related to forms.
Post Reply
windsurfer
 
 
Posts: 181
Joined: Mon May 13, 2019 9:15 pm

Contact us with file upload

Post by windsurfer »

Got a Contact us form and added the File upload control.
I can select the files but no matter what settings i use it won't attach the file to the notification email. I don't have the upload to server selected and use the standard php mail.
Anybody have an idea what i am missing ?
I used to have a photographic memory but i ran out of film !!!
User avatar
Pablo
 
Posts: 21577
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Contact us with file upload

Post by Pablo »

If you use PHP mailer then the files will be sent as email attachment.

Note that your webhost may have restrictions on the file size.
windsurfer
 
 
Posts: 181
Joined: Mon May 13, 2019 9:15 pm

Re: Contact us with file upload

Post by windsurfer »

I am using the PHP mailer and my host doesn't have any size restriction. Here is what i did.

I used the Form wizard and added the upload files , did all the settings , used the php mailer and it sends the email but no attachment.

When i select the File Upload under form controls it sends the email with the file attached.

So.... is the Form upload under the form wizard capable of attaching the file selected and send it as an email or is it only capable of sending the attachment to the server ?
I used to have a photographic memory but i ran out of film !!!
User avatar
Pablo
 
Posts: 21577
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Contact us with file upload

Post by Pablo »

The form wizard generates a standard form with form elements from the toolbox.
So , there is no difference between adding the file upload via the form wizard or adding it manually.

If it does work different then your settings are different.
windsurfer
 
 
Posts: 181
Joined: Mon May 13, 2019 9:15 pm

Re: Contact us with file upload

Post by windsurfer »

I sent you the WBS file, did i make a mistake in the settings ?
I used to have a photographic memory but i ran out of film !!!
User avatar
Pablo
 
Posts: 21577
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Contact us with file upload

Post by Pablo »

Thanks for the project, but I am confused about all the custom scripts.
Why did you add multiple form scripts?
Why not use the built-in script instead?

Please remove all 'HTML' cpode from the page.
And, there should only be one submit button.
And, all input fields should have a unique name.

I think you are trying to do too much at the same time.
I suggest to start with just one file upload. Once you have that working then you can add more elements to the form.
windsurfer
 
 
Posts: 181
Joined: Mon May 13, 2019 9:15 pm

Re: Contact us with file upload

Post by windsurfer »

I never put any custom script on the page. Any script on the page was put there by the program.

I tried again and from the form wizard and when i double click on the field and give it a unique name it works. It would be nice if one could specify the name of the field in the Add controls to the form window. The first 2 that show up don't have a unique name, any fields added do have a unique name you specify.
I used to have a photographic memory but i ran out of film !!!
User avatar
Pablo
 
Posts: 21577
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Contact us with file upload

Post by Pablo »

The form wizard was designed to help you get started with a basic form layout.
Once you have completed the wizard, a standard has been created over which you can fully customize.

Note that some templates generate their own script, because they fulfill a specific task.
These scripts cannot be mixed with other form scripts.
Post Reply