File too big and other problem

See all posts Reply

File too big and other problem new!
by Viper, 13 years, 11 months ago
I've try to upload files but I've got an error:
"File too big"

I removing all unnecessary code from my script and do a small debug and got...

warning: trim() expects parameter 1 to be string, array given in /var/www/viper.tests/administrator/components/com_kinoarhiv/libraries/uploads/upload.php on line 1813

Warning: preg_match() expects parameter 2 to be string, array given in /var/www/viper.tests/administrator/components/com_kinoarhiv/libraries/uploads/upload.php on line 1864

Warning: realpath() expects parameter 1 to be string, array given in /var/www/viper.tests/administrator/components/com_kinoarhiv/libraries/uploads/upload.php on line 1909

Warning: finfo_file(): Empty filename or path in /var/www/viper.tests/administrator/components/com_kinoarhiv/libraries/uploads/upload.php on line 1909

Warning: mime_content_type(): Can only process string or stream arguments in /var/www/viper.tests/administrator/components/com_kinoarhiv/libraries/uploads/upload.php on line 1965

Warning: getimagesize() expects parameter 1 to be string, array given in /var/www/viper.tests/administrator/components/com_kinoarhiv/libraries/uploads/upload.php on line 1979
/var/www/viper.tests/downloads/kamelia/movie/e/1/
Warning: trim() expects parameter 1 to be string, array given in /var/www/viper.tests/administrator/components/com_kinoarhiv/libraries/uploads/upload.php on line 1813

Warning: preg_match() expects parameter 2 to be string, array given in /var/www/viper.tests/administrator/components/com_kinoarhiv/libraries/uploads/upload.php on line 1864

Warning: realpath() expects parameter 1 to be string, array given in /var/www/viper.tests/administrator/components/com_kinoarhiv/libraries/uploads/upload.php on line 1909

Warning: finfo_file(): Empty filename or path in /var/www/viper.tests/administrator/components/com_kinoarhiv/libraries/uploads/upload.php on line 1909

Warning: mime_content_type(): Can only process string or stream arguments in /var/www/viper.tests/administrator/components/com_kinoarhiv/libraries/uploads/upload.php on line 1965

Warning: getimagesize() expects parameter 1 to be string, array given in /var/www/viper.tests/administrator/components/com_kinoarhiv/libraries/uploads/upload.php on line 1979
/var/www/viper.tests/downloads/kamelia/movie/e/1/


and arrays
$_FILES
Array
(
    [upload] => Array
        (
            [name] => Array
                (
                    [0] => december-10-fun_in_the_snow__19-nocal-1024x1024.jpg
                    [1] => fantasy_girl-other.jpg
                )
            [type] => Array
                (
                    [0] => image/jpeg
                    [1] => image/jpeg
                )
            [tmp_name] => Array
                (
                    [0] => /tmp/php0KXO1l
                    [1] => /tmp/phpt7fIjp
                )
            [error] => Array
                (
                    [0] => 0
                    [1] => 0
                )
            [size] => Array
                (
                    [0] => 484404
                    [1] => 666042
                )
        )
)

If I trying to process files as IMAGE UPLOAD from demo script, all working good, but script from demo with MULTI UPLOADS won't work and thrown an errors like above.Reply
Re: File too big and other problem new!
by colin, 13 years, 11 months ago
Please have a look at the FAQ, section What about multiple uploads?Reply
Re: File too big and other problem new!
by Jorge Gonzalez, 8 years, 8 months ago
I got the same problemReply