Page 1 of 1

Help File Upload

Posted: Fri Apr 15, 2022 1:17 am
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.

Re: Help File Upload

Posted: Fri Apr 15, 2022 6:36 am
by Pablo
What exactly did you do?
What are your settings?
What did you expect to happen?

Can you please be more specific?

Re: Help File Upload

Posted: Fri Apr 15, 2022 8:46 pm
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

Re: Help File Upload

Posted: Sat Apr 16, 2022 5:17 am
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

Re: Help File Upload

Posted: Sun Apr 17, 2022 12:11 am
by alexoliveira
I don't understand what I have to do, could be more specific, I will be grateful for the help?

Re: Help File Upload

Posted: Sun Apr 17, 2022 3:42 am
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 />

Re: Help File Upload

Posted: Sun Apr 17, 2022 7:15 am
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.

Re: Help File Upload

Posted: Sun Apr 17, 2022 7:19 am
by alexoliveira
right, but where should I add this code?

Re: Help File Upload

Posted: Sun Apr 17, 2022 8:47 am
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.

Re: Help File Upload

Posted: Sun Apr 17, 2022 9:24 am
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[]

Re: Help File Upload

Posted: Mon Apr 18, 2022 3:08 am
by GrahamW
maybe this extension could help you.

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

Graham