Forum Moderators: coopster

Message Too Old, No Replies

Upload script wont upload more than 2 meg?

         

havoc

1:09 am on Jul 17, 2003 (gmt 0)

10+ Year Member



Hey there i wrote a script where someone uploads a file via a form. The problem is that when its uploaded and if it is over 2.0meg it says could not upload the file.

Any suggestions

From the form
<td width=\"83%\"><INPUT TYPE=\"file\" NAME=\"img1\" SIZE=\"30\"></td>

after submit it starts to upload

if ($img1_name!= "")
{
@copy("$img1" ,"/path/to/dir/$img1_name") or die("Couldn't Upload Your File.");

$picname = $img1_name;
}
else
{
die("No File Specified");
}

I was thinking i might have to delcare $img1 as something but not sure what.

Thanks guys

bcolflesh

1:16 am on Jul 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



forums.devshed.com/archive/5/2003/06/2/64691

Regards,
Brent

havoc

1:36 am on Jul 17, 2003 (gmt 0)

10+ Year Member



Explains it quite nicely i think .. thanks for that!