vqServer Uploading files


Enabling file uploads potentially exposes your web site and computer to denial of service attacks. vqSoft recommends using this feature with caution and restricting file uploads to trusted persons. In the default configuration, file uploads can only be performed by members of the System administration access control list.

vqServer includes a file upload facility which allows visitors to your web site to upload files from an HTML form using their web browser. Follow the Upload link on the sample home page to try out this feature. Note:

  1. Not all web browsers support file uploads using HTML forms. For example, Microsoft Internet Explorer version 3 doesn't.
  2. In the default configuration, the maximum size of file that can be uploaded is 1024 bytes (this can of course be changed).

A successful file upload results in the creation of two files in the upload directory:

  1. xxxdesc.txt where xxx is the serial number of the upload: a short text file which contains a date/time stamp, the original name of the uploaded file and a list of any other fields on the upload form.
  2. xxxupload.ext where ext is the original extension of the uploaded file: the uploaded file.

vqServer also creates the file counter.dat in the upload directory to keep track of the number of files uploaded.

The file upload facility requires an alias to the internal file upload servlet, vq.server.FileUpload which is included in the classes.zip file that comes with vqServer. In the default configuration the alias is /servlet/vq.server.FileUpload. This alias is used by the file upload form to invoke the servlet. You can of course create more aliases for the same servlet and each alias can be used to upload files to a different directory.

The operation of the file upload facility is controlled by modifying the initialisation parameters of the file upload servlet. These parameters can be viewed and edited by clicking on the icon in the Parameters column next to the appropriate alias in the control centre's aliases pages. The parameters are:

  • uploaddir: the real name of the directory where uploads will be stored, ending with /.
  • maxsize: the maximum size of file that can be uploaded.
  • ackpage: alias of the page that will be displayed following a successful file upload, beginning with /.


vqServer version 1.9. Copyright © 1997-2000 Steve Shering and vqSoft. Last updated 4 October 1999.
vqServer
FAQs
Register (free!)
Support

Contents

Special security
GNUJSP