Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The PUI Download Exit (PUIDNLEXIT) program provides security and optionally some server-side logic for downloads sent through through the pui.download() API.  This code is called twice during each download, once before the download begins, and once after the download is complete. The parameters to this exit program are as follows:

1

timing flag

input

10i 0

2

input data

input

data structure

3

IFS directory from which to download stream file

i/o

640A varying

4

IFS stream file to download

i/o

256A varying

5

attachment file name

i/o

256A varying

6

content type

i/o

255A varying

7

allow flag

output

5i 0

  • Timing Flag -  The exit program will be called twice, once before the download (for authority checking) and once after the download (for cleanup).  This flag will contain a 0 during the "before" call, and a 1 during the "after" call.

...