I have a svery simple file upload script that is failing because for some reason I cannot access the values in $_FILES.
I have stuck in some debug code and what is odd is that using print_r extracts the correct values, wheres trying to access each array item individually fails:
Code: Select all
print "<pre>\n";
print_r($_FILES);
print "</pre>\n";
echo "<pre>\n";
echo "Name: " . $_FILES['userfile']['name'] . "\n";
echo "Type: " . $_FILES['userfile']['type'] . "\n";
echo "Size: " . $_FILES['userfile']['size'] . "\n";
echo "</pre>\n";Anything obvious wrong in the way I am addressing the individual array item values?Array
(
[fileShield] => Array
(
[name] => s_utarg.png
[type] => image/png
[tmp_name] => /tmp/phpXBkBEr
[error] => 0
[size] => 1117
)
)
Name:
Type:
Size:
Thanks