Get ready for BLACK FRIDAY shopping starting in

Forums

This topic is locked

more upload fun

Posted 06 Sep 2006 14:13:00
1
has voted
06 Sep 2006 14:13:00 pete spencer posted:
I've managed to get an 'upload files' page running after reading through a tutorial, but it won't upload files above 2mb. I haven't mentioned anything about filesize in the php code, which is:
<pre id=code><font face=courier size=2 id=code> &lt;?php
$target = "upload/";
$target = $target . basename( $_FILES['uploaded']['name']);
$ok=1;
if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target))
{
echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded";
}
else {
echo "Sorry, there was a problem uploading your file.";
}
?&gt;</font id=code></pre id=code>

I get the following error in my error log
"[06-Sep-2006 12:00:33] PHP Warning: upload_max_filesize of 2097152 bytes exceeded - file [uploaded=Brown Tea.zip] not saved in Unknown on line 0'

This is for a local printer so some files may well be 10mb or more. Anyhelp gratefully received.

Reply to this topic