Problem with multiple file upload

Issues related to forms.
Post Reply
goldpompon
 
 
Posts: 32
Joined: Sat Nov 23, 2019 1:12 pm

Problem with multiple file upload

Post by goldpompon »

Hi, can someone help me with form my page? Unfortunately, there are difficulties with uploading multiple files. In File upload field settings, "Accept multiple files" is checked. Despite of the fact that my form sends only one file. How can I solve the problem? For any help would be very grateful. Here is a link to the contact page: http://www.klavierstimmer.com/kontakt.php Image :roll: :?:
User avatar
Pablo
 
Posts: 21584
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Problem with multiple file upload

Post by Pablo »

In HTML to accept multiple values, the input name must have brackets.
For example:

Code: Select all

FileUpload[]
goldpompon
 
 
Posts: 32
Joined: Sat Nov 23, 2019 1:12 pm

Re: Problem with multiple file upload

Post by goldpompon »

Thanks, where can I change that way?
User avatar
Pablo
 
Posts: 21584
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Problem with multiple file upload

Post by Pablo »

You can set the name in the properties of the file upload object.
See your own screenshot.
goldpompon
 
 
Posts: 32
Joined: Sat Nov 23, 2019 1:12 pm

Re: Problem with multiple file upload

Post by goldpompon »

I have changed. Unfortunately, I can not get a file now. Image
User avatar
Pablo
 
Posts: 21584
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Problem with multiple file upload

Post by Pablo »

It looks like you have added a lot of spaces after the brackets.
goldpompon
 
 
Posts: 32
Joined: Sat Nov 23, 2019 1:12 pm

Re: Problem with multiple file upload

Post by goldpompon »

I changed again. But nothing happens!
User avatar
Pablo
 
Posts: 21584
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Problem with multiple file upload

Post by Pablo »

goldpompon
 
 
Posts: 32
Joined: Sat Nov 23, 2019 1:12 pm

Re: Problem with multiple file upload

Post by goldpompon »

Extension does not fit the design. At the moment only one file will continue to upload with my form possible. I wish in the future the problem will be solved in the program. :wink:
GrahamW
 
 
Posts: 240
Joined: Sat Jul 08, 2017 5:02 am

Re: Problem with multiple file upload

Post by GrahamW »

tccieslak
 
 
Posts: 3
Joined: Fri Feb 28, 2020 7:40 pm

Re: Problem with multiple file upload

Post by tccieslak »

I have set the Accept Multiple Files in the upload form and have set the FileUpload property to add [] with no spaces. I can select multiple files and the selection box states that 2 files have been selected, yet when I submit the form, the email arrives with only the last file selected attached to the email. Any help on this problem?
User avatar
Pablo
 
Posts: 21584
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Problem with multiple file upload

Post by Pablo »

The built-in PHP script does not support multiple files for a single input field.
This option requires a custom script.
Post Reply