I'm trying to use multiple uploads and think I followed all the things I saw on this forum but yet,.. no result.
I added a field multiplier in my form with uploadfields. That didn't work so I went to the demo's
When I use the fieldmultiplier I get this:
With the demo-file-upload, even if i set it all for multiple, I only get one File Uploaded.
I get only this form debugger:
Only the first file is uploaded.
Can someone Help?
I added a field multiplier in my form with uploadfields. That didn't work so I went to the demo's
When I use the fieldmultiplier I get this:
submit
array ( 0 => array ( 'data' => 'ee', ), 1 => array ( 'data' => 'dd', ), )
ee dd
Array
(
[file] => Array
(
[name] => Array
(
[0] => vacature limburgvl brab.pdf
[1] => Formulaire d Adhesion.pdf.docx
)
[type] => Array
(
[0] => application/pdf
[1] => application/vnd.openxmlformats-officedocument.wordprocessingml.document
)
[tmp_name] => Array
(
[0] => /tmp/phpx9MMX9
[1] => /tmp/phpgnpfbf
)
[error] => Array
(
[0] => 0
[1] => 0
)
[size] => Array
(
[0] => 103247
[1] => 55171
)
)
)
Data Array
Array
(
[option] => com_chronoforms5
[chronoform] => demo-fields-multiplier
[event] => submit
[text] => Array
(
[0] => Array
(
[data] => ee
)
[1] => Array
(
[data] => dd
)
)
[button5] => Submit
)
Array
(
)
Errors
Array
(
)
Debug Info
Array
(
)
With the demo-file-upload, even if i set it all for multiple, I only get one File Uploaded.
I get only this form debugger:
Data Array
Array
(
[option] => com_chronoforms5
[chronoform] => demo-file-upload
[event] => submit
[button2] => Submit
)
Array
(
)
Errors
Array
(
)
Debug Info
Array
(
)
Only the first file is uploaded.
Can someone Help?
Hi nspv,
I'm not clear what the problem is exactly? In the first Debugger you posted it looks as though two files have been uploaded?
To get the demo-file-upload form to upload multiple files you would need to set Multiple to Yes, and change the name to e.g. file1[] in the File Field element and add file1 to the Array fields box in the Files Upload action.
Bob
I'm not clear what the problem is exactly? In the first Debugger you posted it looks as though two files have been uploaded?
To get the demo-file-upload form to upload multiple files you would need to set Multiple to Yes, and change the name to e.g. file1[] in the File Field element and add file1 to the Array fields box in the Files Upload action.
Bob
So in both ways only 1 file is uploaded,..
Hi joeriFranck,
Please remove the [] from the entry in the Files config box
I don't see the part of the Debugger output showing the files upload - is there anything there?
Bob
Please remove the [] from the entry in the Files config box
I don't see the part of the Debugger output showing the files upload - is there anything there?
Bob
removed the [] there, I dont get more debuginformation.
No difference still only 1 file uploaded
No difference still only 1 file uploaded
Hi joeriFranck,
By all means PM me the site URL, the form name, and a SuperAdmin login and I'll take a quick look.
Bob
By all means PM me the site URL, the form name, and a SuperAdmin login and I'll take a quick look.
Bob
Hi joeriFranck,
The demo-file-upload_copy form is now working correctly. There were two problems: a. you had two forms with the same name and, in that case CF loads the one with the lower id so you probably never saw the form you were testing; b. the name in the File field element had a space in front of it ' file1[]' and it needs to be 'file1[]'.
For the main form - do you really need the multiplier and the multi-files option? It gets much more complex using a File field inside a Multiplier and is rarely necessary.
Bob
The demo-file-upload_copy form is now working correctly. There were two problems: a. you had two forms with the same name and, in that case CF loads the one with the lower id so you probably never saw the form you were testing; b. the name in the File field element had a space in front of it ' file1[]' and it needs to be 'file1[]'.
For the main form - do you really need the multiplier and the multi-files option? It gets much more complex using a File field inside a Multiplier and is rarely necessary.
Bob
Thanks, I don't need the field multplier for this when multiple upload works.
I'll buy you a coffee! ;-)
I'll buy you a coffee! ;-)
This topic is locked and no more replies can be posted.