October 2010
Intermediate to advanced
448 pages
15h 29m
English
By allowing your users to upload files, you can expand the types of services that your Web site offers by writing a Perl CGI script that accepts the uploaded data, processes it, and produces some sort of result. To allow users to upload files, you must first create an HTML form that prompts the user for the file to upload, and then create a Perl CGI script that accepts the upload using the CGI library.
To accept files, your opening HTML form tag must specify a special encoding-type attribute called "multipart/form-data", after which, all data fields that are sent will be specially formatted for complex data payloads. This allows you to accept relatively large files, and to maintain ...
Read now
Unlock full access