Haj Amir
Haj Amir

Reputation: 1

function move_uploaded_file() doesnt return a true result

i try move_uploaded_file(), i need the true or false result but i doesnt return false ! it always return true!

move_uploaded_file( $_FILES['form_pic']['tmp_name'][$i], $dest.$picture_name);

i want to know what are file field are filled

            for ( $i=0 ; $i<5 ; $i++ )
            {

             move_uploaded_file( $_FILES['form_pic']['tmp_name'][$i], $dest.$picture_name);
            {

Upvotes: 0

Views: 143

Answers (1)

slash197
slash197

Reputation: 9034

Without your html is hard to say but most definitely $_FILES['form_pic']['tmp_name'] is not an array so you should try $_FILES['form_pic'][$i]['tmp_name].

Upvotes: 1

Related Questions