Hey guys.
I recently upgraded my server from PHP 4.2.3 to 4.3.2.
I am not having problems with scripts that upload files to the server.
It seems the file and it's POST data gets lost somewhere.
Here is a test script I wrote
<?php
if ($_REQUEST['action']) {
print "<pre>";
print_r($_REQUEST);
print "</pre>";
} else {
?>
<form method=post enctype="multipart/form-data">
<input type=hidden name=action value="1">
<input type=file name=fileupload>
<input type=submit>
</form>
<?php
}
?>
The output of this using PHP 4.2.3 is:
Array
(
[action] => 1
[fileupload] => Array
(
[name] => ccsml.jpg
[type] => image/jpeg
[tmp_name] => /tmp/phpYWciHf
[error] => 0
[size] => 7681
)
)
But the output using PHP 4.3.2 is:
Array(
[action] => 1
)
Does anyone know what I am missing? Is there a new setting I have to put in?
I have tested this on two machines. My actual webserver, and my workstation. The workstation has only ever had 4.3.2 installed on it.