Focal Point
[CLOSED] Upload file with webfocus

This topic can be found at:

April 22, 2013, 06:51 AM
[CLOSED] Upload file with webfocus
Hello ,
I need your help .
I want upload files with webfocus and if is not possible, with jquery.

I use

Thank you for all.

Good day.

This message has been edited. Last edited by: <Kathryn Henning>,
April 22, 2013, 02:12 PM
Can you redirect to another webpage or insert some AJAX code with -HTMLFORM?

7.66 and 7.704
System: Windows / AIX / Linux
Output: Mostly HTML, with some PDF, Excel and Lotus(!)
April 23, 2013, 04:40 PM
Could you elaboarte on this?       "... with webfocus ... with jquery ..." What kind of files?

   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
April 24, 2013, 04:48 AM
Thanks Doug by you answer.

The files are .cvs

Do you have any example please please?

I want copy preee.csv in c:/../documents/ to other rute for example server/files/

Good day.
April 25, 2013, 08:52 AM
As long as the target server is visible to the WebFOCUS server you can use a command line from within a FOCEXEC to do what you want. For example

[DOS, WINNT, UNIX, etc] [copy, cp, del, mv, etc] source target

WF 7.7.04, WF 8.0.7, Win7, Win8, Linux, UNIX, Excel, PDF
April 25, 2013, 09:04 AM
Mike Deluca
Alex, can you give a more detailed code example of how you would do that?

Prod/Dev: WebFOCUS 8.0.06 on Windows Server 2008/Tomcat , WebFOCUS DevStudio 8.0.06 on Windows 7
April 25, 2013, 01:16 PM
Please i need more information of this.

I need send a file type .csv to other folder.

than you for all
April 26, 2013, 08:27 AM
In your FOCEXEC you can execute a command line by preceding it with the System and then the command. In windows you'll need to map a drive. In other systems you'll need to use the syntax appropriate to the system. You can get more information on this by searching for "operating system commands" in you Dev Studio help or on the tech support search page.
DOS (or WINNT) copy c:\ibi\apps\baseapp\xxxx.csv z:\folder\subfolder

WF 7.7.04, WF 8.0.7, Win7, Win8, Linux, UNIX, Excel, PDF
April 27, 2013, 09:21 PM
Jim Morrow
Are you uploading from the browser client to the WebFocus server or from the WebFocus Server to another server of mainframe?

From the server have WebFcous write an FTP script and call the OS to have it run. Or just have WebFcous write to the other systems disk or a disk share by both systems

From the browse client write a script to write WebFocus disk Then call WebFocus to process the file. Or just send the file up in blocks which will fix in a 4096 character web query string (yes this is not elegant but I seen it work for small files and it reduces security concerns)

Jim Morrow
Web Focus 7.6.10 under Windows 2003
MVS 7.3.3

April 28, 2013, 06:55 PM
What we have done is create jsp to upload files to specified locations.

Should be easy enough to create one.


Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

October 17, 2019, 01:35 PM

Would you be able to provide a snippet of your code ?

Tharun Katanguru
SBOX- 8205 DEV/TEST/PROD : 8105 8205
Linux, All Outputs