I can upload a 200k image in a mere 2 seconds. But if I try to upload a 500k image, my browser tries to submit the form for several minutes. It would probably time out eventually but I haven't waited around that long. What gives? Here's my pared-down test code:
#! /usr/bin/perl
use CGI;
$cgi = new CGI;
@fields = $cgi->param; #gets the names of all form fields
$upload = $cgi->param('file');
open (UPLOAD, ">$upload");
while ($chunk = read($upload, $data, 50000) ) {print UPLOAD $data;}
close (UPLOAD);
print "Location:index.html\n\n";