Welcome Guest, Not a member yet? Register   Sign In
File uploading with an array of file input
#1

[eluser]joneslee[/eluser]
My VIEW:
---------------
Code:
<input type="file" id="file[]"  />
<input type="file" id="file[]"  />



My CONTROLLER:
--------------------

The $_FILES will give me

Code:
Array
(
    [STYLE_IMAGE-0] => Array
        (
            [name] => Array
                (
                    [0] => IMG_9617.jpg
                    [1] => IMG_9618.jpg
                )

            [type] => Array
                (
                    [0] => image/jpeg
                    [1] => image/jpeg
                )

            [tmp_name] => Array
                (
                    [0] => /tmp/php4OnQiR
                    [1] =>
                )

            [error] => Array
                (
                    [0] => 0
                    [1] => 4
                )

            [size] => Array
                (
                    [0] => 128880
                    [1] => 3490
                )

        )

)


My question is is there anyway to use File Uploading class to upload this array of file input?
#2

[eluser]pistolPete[/eluser]
Have a look at http://ellislab.com/forums/viewthread/80610/




Theme © iAndrew 2016 - Forum software by © MyBB