Hi,
I am getting an error making a file upload form. The form uploads fine but when the php file handles the uploading on the following page, it appears that "the file is bigger than the PHP installation allows." Am I doing something wrong, or does my server really not allow for much upload size (I only uploaded about 5Mb when trying it). The html form uses an <input type="file" name="mp3_1"> tag. It is submitted to the following file:
<?php
if ( move_uploaded_file ($FILES['mp3_1'] ['tmp_name'],
"/mp3s/{$FILES['mp3_1'] ['name']}") )
{ print '<p> The file has been successfully uploaded </p>';
}
else
{
switch ($_FILES['mp3_1'] ['error'])
{ case 1:
print '<p> The file is bigger than this PHP installation allows</p>';
break;
case 2:
print '<p> The file is bigger than this form allows</p>';
break;
case 3:
print '<p> Only part of the file was uploaded</p>';
break;
case 4:
print '<p> No file was uploaded</p>';
break;
}
}
?>