× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.

You should also be able to do it with GETURI or HTTPAPI.

I thought I had examples of this somewhere for GETURI. I couldn't find
one, but assuming you don't need too much authentication this is the
general idea:
GETURI URI(host.com/path) UPFILE(*YES) UPSTMF('/path/to/file.ext')
UPNAME(filename.ext) UPFIELD(FILE) UPCONT('application/pdf')

If there is authentication you need to figure out how that's done (ie
OAuth, cookie, etc) which can also be part of the request.

More info here:


On Wed, Feb 8, 2023 at 12:26 PM Richard Schoen <richard@xxxxxxxxxxxxxxxxx>

It looks like there is an available Python API


Easy enough to call from RPG via the QSHEXEC command

Richard Schoen
Web: http://www.richardschoen.net
Email: richard@xxxxxxxxxxxxxxxxx


message: 1
date: Wed, 08 Feb 2023 11:11:59 -0500
from: mlazarus <mlazarus@xxxxxxxxxxxx>
subject: Upload files to Box.com in RPG / SQL?

Does anyone have code in RPG / SQL to upload files to a Box.com folder
they can share?

This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2023 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.