I am running the following simple HTML form to call the Perl script at the bottom of this post.
The script runs fine but depending on the size of the file selected to download, there is a delay before the text displays.
If I substitute the <input type='file'> command with a <input='text'> command, there is no delay.
The delay is more obvious on a slow internet connection which many of my clients have.
Could anyone suggest why there is such a long delay.
Keith
The script runs fine but depending on the size of the file selected to download, there is a delay before the text displays.
If I substitute the <input type='file'> command with a <input='text'> command, there is no delay.
The delay is more obvious on a slow internet connection which many of my clients have.
Could anyone suggest why there is such a long delay.
HTML:
<!DOCTYPE html>
<html>
<head>
<title>Upload Test</title>
</head>
<body>
<h1>File Upload Test</h1>
<FORM METHOD="POST" ACTION="cgi-bin/test2.pl" ENCTYPE="multipart/form-data">
<INPUT TYPE="file" NAME="FILEID" VALUE="" SIZE=50 MAXLENGTH=80><BR>
<INPUT TYPE="hidden" NAME="call" VALUE="uploadimage">
<INPUT TYPE="submit" NAME="submit" VALUE="Upload File To Server"></FORM>
</body>
</html>
Perl:
#!/usr/bin/perl
use strict;
use warnings;
print "Content-Type: text/html\n\n";
print "Start Script<br>";
print "This simple script only displays this text and performs no other function.";
Keith