cleanair4me
Technical User
- May 16, 2008
- 61
I can only load a file that is 1 mb and that is it. If I try and upload anything over 1 mb it doesnt work.
I am using a standare upload script on our Solaris 10 server with PHP 5:
Please advise.
I am using a standare upload script on our Solaris 10 server with PHP 5:
Code:
<form enctype="multipart/form-data" name="test" method="POST" action="filename.php">
<input type="hidden" name="MAX_FILE_SIZE" value="10000000" />
<div><input type="file" id="find_file" name="find_file" Size="80"></div>
</form>
.
.
.
<?php
$target_path = "uploads/";
$target_path = $target_path . basename( $_FILES['find_file']['name']);
if(move_uploaded_file($_FILES['find_file']['tmp_name'], $target_path)) {
echo "The file ". basename( $_FILES['find_file']['name']).
" has been uploaded";
} else{
echo "There was an error uploading the file, please try again!";
}
?>
Please advise.