Help File Upload

Issues related to forms.
Post Reply
User avatar
alexoliveira
 
 
Posts: 232
Joined: Fri Oct 01, 2021 5:12 am
Contact:

Help File Upload

Post by alexoliveira »

urgent guys in a way to receive the images in the form, the file upload is not working as it has to work, when adding more images does not arrive in the email and I urgently need to solve this.
S.A
User avatar
Pablo
 
Posts: 23005
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Help File Upload

Post by Pablo »

What exactly did you do?
What are your settings?
What did you expect to happen?

Can you please be more specific?
User avatar
alexoliveira
 
 
Posts: 232
Joined: Fri Oct 01, 2021 5:12 am
Contact:

Re: Help File Upload

Post by alexoliveira »

I made a real estate website, where we will have the real estate appraiser, in this appraiser the person will fulfill the requirements and then attach as images of the properties.

but unfortunately when finishing the form only an image arrives in the email.

I need a way for the person to upload as many images as they want of the property to complete the evaluation.

follow the evaluator link to better understand https://jbastosimoveis.com.br/avaliador.php
S.A
User avatar
Pablo
 
Posts: 23005
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Help File Upload

Post by Pablo »

To support multiple uploads, you will have to use brackets in the name of the input field.
See also the notes about this in the help.

Also, I do not recommend to use spaces in the name.
https://www.wysiwygwebbuilder.com/forum ... hp?t=64868
User avatar
alexoliveira
 
 
Posts: 232
Joined: Fri Oct 01, 2021 5:12 am
Contact:

Re: Help File Upload

Post by alexoliveira »

I don't understand what I have to do, could be more specific, I will be grateful for the help?
S.A
User avatar
BaconFries
 
 
Posts: 5791
Joined: Thu Aug 16, 2007 7:32 pm

Re: Help File Upload

Post by BaconFries »

I don't understand what I have to do, could be more specific
Did you read the help file? You will need to add brackets [] (square) to the name='file[ ]' I would also add multiple to the input.
Example of how it should look...

Code: Select all

<input type='file' name='files[]' multiple />
User avatar
Pablo
 
Posts: 23005
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Help File Upload

Post by Pablo »

The name of the file input file is currently:

Code: Select all

Upload imagem
It should be

Code: Select all

upload_imagem[]
The brackets are needed to support multiple files. This is documented in the help.
User avatar
alexoliveira
 
 
Posts: 232
Joined: Fri Oct 01, 2021 5:12 am
Contact:

Re: Help File Upload

Post by alexoliveira »

right, but where should I add this code?
S.A
User avatar
alexoliveira
 
 
Posts: 232
Joined: Fri Oct 01, 2021 5:12 am
Contact:

Re: Help File Upload

Post by alexoliveira »

I followed the steps and got it, thank you so much friends for the usual help, I love being part of this family.
S.A
User avatar
Pablo
 
Posts: 23005
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Help File Upload

Post by Pablo »

right, but where should I add this code?
You do not need to write any code.

You will need to change the name property of the input filed from

Code: Select all

Upload imagem
to

Code: Select all

upload_imagem[]
GrahamW
 
 
Posts: 238
Joined: Sat Jul 08, 2017 5:02 am

Re: Help File Upload

Post by GrahamW »

maybe this extension could help you.

https://shop.grahamscomputers.net/websh ... nts-9.html

Graham
Post Reply