Forums

Multi Page and File Upload

tobisagt 17 Oct, 2012
Hi,

the file upload is on page 3.
This is what the debugger shows me on page 4:


Array
(
    [datei1] => Array
        (
            [name] => 20121017164531_test.jpg
            [original_name] => test.jpg
            [path] => /Applications/MAMP/htdocs/25test/components/com_chronoforms/uploads/bewerbung/20121017164531_test.jpg
            [size] => 40745
            [link] => http://localhost/25test/components/com_chronoforms/uploads/bewerbung/20121017164531_test.jpg
        )

)


But on page 5 [datei1] is empty!

Array
(
    [datei1] => 
)


All other data works correctly!
GreyHead 17 Oct, 2012
Hi tobisagt,

Hmmm . . . I've never tried that. I'm a bit surprised that it isn't carried over. You could try using a custom code action to copy the item you need directly into the $form->data array
<?php
$form->data['datei1_url'] = $form->data['datei1']['url'];
?>

Bob
tobisagt 17 Oct, 2012
Thx for your reply.

But it seems not to work too.

I uploaded my form, maybe it can help you to find a solution?!
Maybe i did something wrong?!

It would really nice if we can get this to work, because its really important to me!

THx, so far!

-Tobias
GreyHead 18 Oct, 2012
Hi Tobias,

On Page 4 if you move the MultiPage action down after the Upload Files action (and thus the Custom Code action) the value is carried forward OK. In fact the whole Upload Files array is carried forward.

Bob
tobisagt 18 Oct, 2012
Good to know!

Thank you for your help. You saved my life😀
GreyHead 18 Oct, 2012
Hi Tobias,

Most of the time ChronoForms is very logical like this. The actions are processed in the sequence they appear in the event.

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