FileUpload.pm Version 0.07 Demonstration Page

Last Modified: 24th.March.2002

Perl CGI Testing

  1. Make sure FileUpload is installed.
  2. Change the file mode of test.cgi to be executable. ("chmod 755 test.cgi" in unix system.)
  3. Go to Demonstration Page For FileUpload Module to do a test. Very simple, just fill in the form and submit it, you will see the result.
  4. If FileUpload.pm is not in the standard search path of perl, add the following line to the top of the test.cgi script:
    use lib qw(/path/of/directory/where/this/FileUpload.pm/is/saved);
    OR
    BEGIN { push(@INC, "/path/of/directory/where/this/FileUpload.pm/is/saved"); }

Perl CGI Testing Without Telnet Access

  1. Upload the files in this directory into your web server.
  2. Upload FileUpload.pm into the same directory.
  3. Make sure test.cgi is executable.
  4. Go to Demonstration Page For FileUpload Module to do a test. Very simple, just fill in the form and submit it, you will see the result.

Possible Errors

  1. Path of perl is not correct at the first line of the script. Get the correct path from your web administrator.
  2. FileUpload.pm is not inside the perl's search path directories. Add the following line to the top of the test.cgi script:
    use lib qw(/path/of/directory/where/this/FileUpload.pm/is/saved);
    OR
    BEGIN { push(@INC, "/path/of/directory/where/this/FileUpload.pm/is/saved"); }
  3. test.cgi does not have enough privilege to create file in current "demo" directory.

For any comments, bugs or questions, you are welcome to send an email to tneohcb@pc.jaring.my.
The CGI Resource
                  Index

Rate
           this Script @ The CGI Resource Index