× 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.





CGIDEV2 has now a easier way to upload files, here is a sample:

<form action="" method="post" enctype="multipart/form-data">

<label style="font-weight:bold;">Archivo:</label>
<input type="file" name="imagen" device="files" accept=".jpg" /><br/>

<input type="submit" value="Ok">
</form>

The file end up in theh IFS, and zhbGetVar('imagen_tempfile'); will give
you the name, move it and ready...

El 24-04-2020 12:31, B Stone escribió:

I don't think CGIDEV2 will help with that. That sounds like a javascript
function you'd want to use.

You could roll your own or use the confirm() javascript function and only
start the download if that is true.

https://www.w3schools.com/jsref/met_win_confirm.asp [7]

You would have to change your link as well and then actually redirect to
the download link if they select OK and confirm.

Bradley V. Stone
www.bvstools.com [8]
MAILTOOL Benefit #15 <https://www.bvstools.com/mailtool.html [9]>: The ability
to add a Footer to each email sent using an IFS stream file.

On Fri, Apr 24, 2020 at 10:57 AM john art <jhon_art@xxxxxxxxxxx> wrote:

Hi all I am playing with Upload/Download for iSeries utility from / www.easy400.net [1] ; i'm using it from my RPG program to download a file from IMB i to my PC . Running this code in my rpg PCCMD(''start ' + ' http://myibmi:8027/fuploadp/fdnload.pgm+?xfile=/ [2]' + '/tmp/' + %Trim(TmpObj)+ '.xls' + ''')' + ' PAUSE(*NO)'; it download the document in my pc. I would like, before the download, show to user a web page that ask confirm to the download, but having no knowledge about CGIDEV2, i'm not able to do that. The program already does a similar operation (if file not exist), but i don't know how to menage a situation where the first time ask confirm and then (second time) run the download thanks in advance P.S. the source code of the program is at https://www.easy400.net/fuploadp/dspsrc.cgi?srclib=fupload&srcfil=qrpglesrc&srcmbr=fdnload [3] -- This is the RPG programming on IBM i (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe,
unsubscribe, or change list options, visit: https://lists.midrange.com/mailman/listinfo/rpg400-l [4] or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx Before posting, please take a moment to review the archives at https://archive.midrange.com/rpg400-l [5]. Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions. Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com [6]



Links:
------
[1] http://www.easy400.net
[2] http://myibmi:8027/fuploadp/fdnload.pgm+?xfile=/
[3]
https://www.easy400.net/fuploadp/dspsrc.cgi?srclib=fupload&amp;srcfil=qrpglesrc&amp;srcmbr=fdnload
[4] https://lists.midrange.com/mailman/listinfo/rpg400-l
[5] https://archive.midrange.com/rpg400-l
[6] https://amazon.midrange.com
[7] https://www.w3schools.com/jsref/met_win_confirm.asp
[8] http://www.bvstools.com
[9] https://www.bvstools.com/mailtool.html

-- Este e-mail fue enviado desde el Mail Server del diario ABC Color --
-- Verificado por Anti-Virus Corporativo Symantec --

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2024 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.