RPGspUpload Function
Uploads
a local PC file to the iSeries IFS file system. Returns an indicator value specifying
whether the upload completed successfully or not.
Syntax
RPGspUpload(path or full file name)
Part | Description |
path or full file name | Required. Any IFS path/file name, or just the IFS path. If the file name is omitted, the original PC file name is used. |
Remarks
This function should only be called after a form with an <INPUT type=file> field is submitted. This field must be the last named field on the form. The form must use the POST method, and the ENCTYPE should be "multi-part/form-data".
You can retrieve the PC's file name within your own code using the RPGspIn() function.
Example
The following is a basic upload form:
See Also
Profound
Logic Software, Inc.
www.ProfoundLogic.com
(937) 439-7925