Servertec File Upload Servlet
Examples
Hello World
Display Arguments
Display Headers
URL Redirect
CGI Tester
SSI Tester
Servlet Tag
Servlet Chaining
Log
Cookie Counter
Cookie Tester
Protected Page
List Employees
Connection Pool
Simple Form
Dump Form
Page Counter
File Upload
Session Tester
Context Tester
C++ .NET
C# .NET
J# .NET
Visual Basic .NET

Return

 

This example displays a form that demonstrates the use of multi-part forms and file uploads.

The user should enter values into the fields, then select one or two file(s) to upload and finally press ok.

This example uses fileuploadform.html input form and FileUploadServlet servlet to display any submitted values. The FileUploadServlet servlet uses iws_dir\amples\upload directory to store all files uploaded and limits the total number of bytes posted to 1024 KB.

Optionally this servlet uses max_content_length initialization parameter to specify the number of bytes to limit the file being uploaded to. 1048576 is the default. -1 can be used to specify unlimited length.

[ view source ]

 top of page
Copyright © 1998-2005 Servertec. All rights reserved.
Privacy Statement.
Last Modified: Mon Sep 05 16:00:40 EDT 2005