Standard FileUp Support


If you have created upload applications using Standard FileUp, you can use FileUpEE to create 3-tier uploads (client -> Web Server -> file server) without rewriting your existing Standard FileUp scripts. FileUpEE's FileUpCompat property allows you to use FileUpEE with Standard FileUp.

The FileUpCompat property and Standard FileUp support are available only in ASP, not in ASP.NET
Important!   FileUpEE and Standard FileUp Version 4 cannot be installed on the same server.

A Standard FileUp upload application includes a client-side file submission script and a server-side script that uses FileUp to process the upload:

In a 3-tier FileUpEE upload, if FileUpCompat is set to True on the Web server, you can use a Standard FileUp script on the file server:

Note that Standard FileUp must be installed on the file server. But you do not need to install FileUpEE on the file server to process uploads from a Web server script with FileUpCompat set to True.

When you use an existing Standard FileUp script on the file server, in your FileUpEE Web server script:

  1. Create an instance of FileUpEE:
    	Set oFileUpEE = Server.CreateObject("SoftArtisans.FileUpEe")
  2. Set FileUpCompat to True:
    	oFileUpEE.FileUpCompat = True
  3. Call ProcessRequest.
    	oFileUpEE.ProcessRequest Request, False, False
  4. Set TargetUrl to the URL of the Standard FileUp script on the file server:
    	oFileUpEE.TargetUrl = "http://locahost/fileserver/FileUpResp.asp"
  5. Call SendRequest:
    	oFileUpEE.SendRequest(Response)

Example

A 100K size limit has been set on upload samples.

3 Tier Upload with Standard FileUp

[View Source: Web Server] [View Source: File Server]

The example includes three scripts:

  • Form.asp
    The upload form.


  • WebServer.asp
    The FileUpEE Web server script. This script does not include upload
    processing instructions.


  • FileServer.asp
    The Standard FileUp file server script. FileServer.asp saves the uploaded
    file and sends a response (confirmation or error) to WebServer.asp.


Top


Copyright © 2003, SoftArtisans, Inc.