Re: $_FILE in a function
Posted: 14. October 2015 16:31
ken_mayer wrote:This is what I get:
- Code: Select all
Array ( [armory] => Array ( [name] => CJ_and_Ken_Lainas_Party.jpg [type] => image/jpeg [tmp_name] => C:\xampp\tmp\php6A3A.tmp [error] => 0 [size] => 60897 ) )
This doesn't tell me what to use to reference the information correctly.
That's not correct. Let me write this a little bit more clearly for you.
- Code: Select all
$_FILES = array(
'armory' => array(
'name' => 'CJ_and_Ken_Lainas_Party.jpg',
'type' => 'image/jpeg',
'tmp_name' => 'C:\xampp\tmp\php6A3A.tmp',
'error' => '0',
'size' => '60897'
)
);