File Upload / Download

Starting from WebRainbow v1.4, there are following 8 functions for file uploading.

The three of them are related to the settings for file uploading:

Calling these functions are optional, WebRainbow has the default value for these settings.

The other five functions makes application easy to handle the uploaded files:

The application can use one or more of these functions to deal with uploaded files based on the application's requirement.

Demo:

Here, the sample program demoFileUpload shows how to use these functions to process the files uploaded from the HTML page.

To make this sample program demoFileUpload more usefull, there are other procedures for file listing and file downloading functionalities.

Note:

To compile this sample, follow the steps listed bellow:

  1. Start Visual Basic

  2. Select Standard EXE as project type

  3. Select Sub Main as Startup Object

  4. Give demoFileUpload as project name

  5. Set reference to WRHttpB.tlb, WRMimeB.tlb, and WRnbwB.tlb

  6. Remove Form1, which is the default form for new VB project

  7. Add demoFileUpload.bas (source code for Visual Basic 5 & 6) into the Project demoFileUpload. This file is normally in the folder

         C:\Program Files\WebRainbow\demo\fileupload\

    if you did not change the installation directory for WebRainbow.

  8. Compile it to demoFileUpload.exe.

To debug HttpPost:

To run this sample, click on the following link for instruction of


For the latest information on WebRainbow, please see:
http://www.dmfsys.com/wrainbow/

For questions / comments please email to:
support@dmfsys.com


Copyright © 2000 - 2005 D.M.F. Systems, Corporation. All rights reserved.

Last modified on March 2, 2005