ASP.NETScript sample
http://www.jfileupload.com

==========================================================
JFileUpload homepage:
http://www.jfileupload.com/products/jfileupload/index.html

JFileUpload add-ons page:
http://www.jfileupload.com/products/tools/index.html

Support forums:
http://www.jfileupload.com/support/forums/index.php
==========================================================

This add-on is a ASP.NET server-side sample script for JFileUpload applet.
It supports basic upload, recursive folders upload and file recomposition
from uploaded chunks. It also provides HTTP PUT upload support.


Install:
-------
1 - Copy process.aspx under your IIS web server providing ASP.NET support.

2 - Edit process.aspx and setup upload_dir variable with the correct path 
    of folder where uploaded files will be stored.

3 - Copy applet_http_aspx.html and applet_http_aspx.js in the same folder as applet_http.html 
    provided in JFileUpload package. Update both "url" parameters in applet_http_aspx.js
    to make them match to your server name.
    Note : This sample is setup to display ASP.NET custom error messages (if any).

4 - Optionally, setup max_size variable (default is unlimited) to limit upload
    file size. Notice most default ASP.NET configurations allow 4MB upload only. 
    - If you want to modify it then update your Web.config (see sample included).
    - If you cannot modify it then you could use "chunksize" parameter of JFileUpload
      to ask the applet to split file in small chunks before upload. The ASP.NET script
      will be able to recompose the original file from chunks.



-----------------
02/25/2008 : v2.0
-----------------
- HTTP PUT upload support added.
  Add the following parameter in applet_http_aspx.js to enable it:
  <PARAM NAME="param5" VALUE="httpmethod">
  <PARAM NAME="value5" VALUE="put">


----
v1.0
----
- Initial release.


Notes:
-----
- Details about Web.config:
  Web.config define the upload limits (size and script execution time)
    <httpRuntime maxRequestLength="2097151" executionTimeout="36000"/>
     + maxRequestLength is in KB (2097151 means 2GB which is the maximum value allowed)
     + executionTimeout is in seconds (36000 means 10 hours)
  If this file is not available then default upload limit size is 4MB.
  See all parameters at: http://msdn2.microsoft.com/en-us/library/e1f13641.aspx

- Below the details to add PUT in allowed HTTP verbs:
  - Open IIS console : Control panel -> Administration tools -> IIS 
  - Open your web site properties: Web sites -> Your web site -> Mouse right click -> Properties 
  - Add PUT verb for .aspx: Mapping tab -> .aspx line -> Modify -> Add PUT to the list of verb
  - Apply modifications.

This script has been successfully tested under Microsoft-IIS/5.1 + .NET Framework 2.0.