Here is a view of the code!! whats wrong still dont get it!!
#1/usr/local/bin/perl -wT
use strict;
use CGI ':standard';
print "content-type: text/html\n\n";
my $file = param ('uploadfile');
my $info = uploadinfo ($file);
my $type = $info -> {'content-Type'};
if ($file) {
open (UPLOAD, ">ukhoneyz.co.uk/photos/uploadfile")
my($data, $length, $chunk);
if($length > 51200) {
print "That file is too big. The limit is 100K.";
exit;
}
}
close (UPLOAD);
print "<p>You uploaded <b>$file</b>
which had a MIME type of
<b>$type</b>.";
)else {
print "No file was chosen.";
}
sub error {
print "Couldn't open tempoary file:
$!";
exit;