this is the form I am using for the upload
print "<FORM action=\"" . $_SERVER['PHP_SELF'] . "\" enctype=\"multipart/form-data\" method=\"POST\">\n";
print "<input type=file name=\"UploadFile\" value=\"\" />\n";
print "</form>";
This is a snippet of the code I am using to view the upload information.
print "Request<br />";
print_r( $REQUEST);
print "<br />FILE<br />";
print_r( $FILE);
print "<br />HTTP_POST_FILES<br />";
print_r( $HTTP_POST_FILES);
print "<br /><br />";
This is the output
<body>
Request<br />Array
(
[MAX_FILE_SIZE] => 10000000
[Item] => 16
[AdminThing] => Item
[AdminThingID] => 1
[Name] => RR.doc
[Description] =>
[ActionDetail] => Change
[delete] =>
[PHPSESSID] => 580d4e4771509d844ba351982e94eeb6
)
<br />FILE<br /><br />HTTP_POST_FILES<br />Array
(
[UploadFile] => Array
(
[name] => bomb32.zip
[type] => application/x-zip-compressed
[tmp_name] => /tmp/phpNx5xcC
[error] => 0
[size] => 211679
)
)
notice nothing under FILE - nothing in $FILE
AH HA!!!😃
As I stated previously it was probably something very simple - $FILES not $FILE. I don't know where I came up with the singular - I thought I double checked the docs twice and thrice to make sure about all spellings and contexts were correct.
Thanks for tolerating my trying to figure this out - I'm not usually this bad 😉