2 multi file upload in a single row

laurentmartin 14 Feb, 2013
Hello,

Is there any way to set two mult file upload on the same raw instead of only one per row ?

I see it is possible to do so for textarea and many other elecments via using the options "Start a multified row" , but there is not this option for the multifile upload.

Any advice is appreciated.

Thanks
GreyHead 15 Feb, 2013
Hi laurentmartin ,

You could perhaps do it with some kind of table layout but I'm not sure that it would be very usable.

I've never tried using two widgets in the same form, does it work OK?

Bob
laurentmartin 15 Feb, 2013
Hi Bob,
I didn't test if it is working yet or not, i am just doign the placement first and i didn't find so far any way to apply a float or anything to the block of the widget.

You are right that i should test first the function ...
laurentmartin 16 Feb, 2013
Hi Bob,

I checked on my side, the widget mult file upload doesn't work.

It say success after the onsubmit but the files don't get upload in the folder.

I have tried with the normal file upload (one file one) and it works.

I have tried to change several settins such as the method to post, in vain..
GreyHead 16 Feb, 2013
Hi laurentmartin,

You have to get the settings right for the widget to work correctly. Please check the FAQ and pay special attention to where you add the [] (or not).

Bob
laurentmartin 16 Feb, 2013
Hi Bob,
I have done it already , may be you can have a look the screenshot of the settings and the debugger data below:
ata Array: 
Array
(
    [option] => com_chronoforms
    [chronoform] => test_two_widgets
    [event] => submit
    [Itemid] => 
    [multi_upload_limit_attachments_6] => 1
    [input_submit_3] => Submit
    [7aa8cb32d2773a134e8f00f291408c16] => 1
)
Validation Errors: 
Array
(
)
Data Array: 
Array
(
    [option] => com_chronoforms
    [chronoform] => test_two_widgets
    [event] => submit
    [Itemid] => 
    [multi_upload_limit_attachments_6] => 1
    [input_submit_3] => Submit
    [7aa8cb32d2773a134e8f00f291408c16] => 1
    [_PLUGINS_] => Array
        (
            [upload_files] => Array
                (
                )

        )

)
Validation Errors: 
Array
(
)
Debug Data
Upload files
File post array: Array ( [error] => 99999 )
The file field type is not present in the posted data
Debug Data
Upload files
File post array: Array ( [error] => 99999 )
The file field type is not present in the posted data
GreyHead 16 Feb, 2013
Hi Laurentmartin,

Have you tried with the standard Upload Files action (not the [GH] version)? I haven't tested the [GH] version with the widget :-(

Bob
laurentmartin 16 Feb, 2013
HI Bob,
I tried both.
Same problem in both case.

I have this error in the debugger:

Upload files
File post array: Array ( [error] => 99999 )
The file field type is not present in the posted data



I am working on WAMP (local joomla)
laurentmartin 16 Feb, 2013
HI Bob,
I attached the backup of the simple I where I am testing the widget just FYI.
GreyHead 17 Feb, 2013
Hi laurentmartin,

It's work OK with two changes, both in the Upload Files action:

a) Remove the [] from the Fields Configuration box
attachments_6:pdf-doc-docx-png-jpg-gif


b) Add attachments_6 to the Array Fields box on the Advanced tab.

Bob

PS I added an extra Widget to the Preview box and that worked OK. You need to add the appropriate entries to both boxes I mentioned above.

Fields Configuration:
attachments_6:pdf-doc-docx-png-jpg-gif,attachments_9:pdf-doc-docx-png-jpg-gif

Array Fields:
attachments_6,attachments_9
laurentmartin 17 Feb, 2013
Hi Bob,

I am going to try this straight away.

Thanks for your precious help.

Regards

EDIT: The upload is now working with the normal action Upload Files, but it doesn't work with the GH action.

Now, I need to solve the issue related to the div.

Do you have any idea how we can make the Widget field to be aligned on one line ?

I have actually Two text area on the same line and I would like to put on widget below each of them. So that attachment can be related to the text entered in the text area
GreyHead 22 Feb, 2013
Hi laurentmartin,

I think either you use CSS to place the code blocks, or add extra elements into the form to build a table to hold the elements.

Bob
laurentmartin 22 Feb, 2013
HI Bob,

Thank you for your comment.

Can you clarify a bit more your thought so that I could work on a starter point ?

Thanks
laurentmartin 22 Feb, 2013
Bob,

I like the idea to use a table to do this.

I guess this need to be codded direclty in the code right ? We can not use the form wizard to do it?

Regards
GreyHead 22 Feb, 2013
Hi laurentmartin,

If its simple table then you can build it in the Wizard using Custom Element elements (or possibly containers) to add the table tags. Five elements should do it:
<table><tr><td>
. . .
</td><td>
. . .
</td></tr><tr><td>
. . .
</td><td>
. . .
</td></tr></table>

Bob
laurentmartin 23 Feb, 2013
Hi Bob,

Yes ok, but how to include the multiple file upload inside the column ? Because it is made in a custom code and the elements of multfile upload is in another element.
GreyHead 23 Feb, 2013
Hi laurentmartin,

Sorry, I don't understand your question :-(

Bob
laurentmartin 23 Feb, 2013
Bob,

The widget is dragged in the admin.

You propose to use a table with code in a custom element.

How do i wrap the widget in the custom code ?

This is my question.
GreyHead 23 Feb, 2013
Hi laurentmartin,

I was proposing that you use several Custom Element elements so that they could go before and after the widget:
Custom Element 1:<table><tr><td>
Widget 1 here
Custom Element 2:</td><td>
Widget 2 here
Custom Element 3:</td></tr><tr><td>Label for Widget1</td><td>Label for Widget2</td></tr></table>

Bob
laurentmartin 23 Feb, 2013
Hi Bob,

So I can insert them just by putting their name in the code this way directly ?

The syntax is the same than in the code of your previous post?
GreyHead 23 Feb, 2013
Hi laurentmartin,

No - that just shows the order of the elements - you have to drag each of them into the Preview window and add the HTML in the Custom Element elements.

Bob
laurentmartin 23 Feb, 2013
Hi Bob,

Thanks. It seems to work. I will have to perofrm a few some CSS now to center and make it go proper but you alreayd removed a needle from my feet !

Thanks again.
This topic is locked and no more replies can be posted.