Kbase 21569: How to use the fileUploadDirectory tool?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  29/05/2008 |
|
Status: Verified
GOAL:
How to use the fileUploadDirectory tool?
GOAL:
How to upload text files through WebSpeed?
GOAL:
How to upload ASCII files through webspeed?
GOAL:
Can I use fileUploadDirectory for binary files?
GOAL:
fileUploadDirectory
FACT(s) (Environment):
OpenEdge 10.x
WebSpeed 3.x
All Supported Operating Systems
FIX:
The attached code is an excerpt from the ubroker.properties file. The comments demonstrate how to use an HTML form to post a file to the directory specified by fileUploadDirectory on the machine whether the webspeed transaction server is running.
# fileUploadDirectory OPTIONAL
#
# Specifies a directory where WebSpeed servers can upload files to.
# The follow HTML snippet shows how HTML to use this feature:
# <HTML>
# <BODY>
# <FORM ENCTYPE="multipart/form-data"
# ACTION="http://<yourhost>/<msngr path>/<msngr>/ping" METHOD="POST">
# <INPUT type="file" name="filename"> <INPUT type="submit">
# </FORM>
# </BODY>
# </HTML>
#
# By default this capability is disabled. To enable it specify an
# upload directory. Only text file upload is supported, not binary.
You must define the upload directory in either the ubroker or Progress Explorer Tool for this to execute properly. This process is for text files only. Also, by default this function is disabled. This sample code allows you to browse for a text file on the client CPU, then the submit button uploads it to the WebSpeed upload directory. In the Form definition, the page identified in the Action string is where you want the client session redirected upon completion of the upload. Examples might be a thank you page or upload accepted page.