Servertec File Upload Servlet
Content
Introduction
Release Notes
Features
FAQs
Requirements
Installation
How To
Change Log
Future Plans
Knowledge Base
Documentation
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
JavaServer Pages
Legal
Contact Us

 

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 ] [ run ]

 top of page
Copyright © 1998-2005 Servertec. All rights reserved.
Privacy Statement.
Last Modified: Sun Sep 04 14:57:20 EDT 2005