Buy Now
Sign in

Various bugs - upload files, repeaters

healyhatman , May 17 at 13:22
H
healyhatman
1) Auto uploading of files do not work when the file field is part of a repeater area, you need to specify each possible field name
For example, in the Custom Files config you would need to enter
documents1:pdf​
​documents2:pdf​
​documents3:pdf​
​...
so on and so forth.
2) Cannot use square brackets in the names of the fields, such as "document[0]"
3) Cannot use curly brackets and therefore cannot use shortcodes in the names of the fields in the custom files list, for example if you were to try and get around issue 1 by putting the upload file action within an Event Loop, and call the field using 'document[{var:loop_event.key}]. Your debug will look a little like the following:
Array
(
[upload24] => Array
(
[path] => /..../components/com_chronoforms6/chronoforms/uploads/
[document[{var] => Array
(
[extensions] => Array
(
[0] => loop_event25.key}]:txt
)

[info] => File is not present.
)
as you can see, it's a little broken.
Web developer at SkySpider.com.au