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



Yes. That was the first think I checked:

<form method="post" action="/cgi-bin/wqw0000c" name="links" accept-charset="utf-8" enctype="multipart/form-data">
<input type="hidden" name="smn" value="901">
<input type="hidden" name="quotesmn" value="">
<input type="hidden" name="quotenbr" value="">
<input type="hidden" name="pagectl" value="LINK_MAINT">
<input type="hidden" name="pagesub1" value="EDIT">
<input type="hidden" name="pagesub2" value="SAVE">
<input type="hidden" name="session" value="MJB2019">
<input type="hidden" name="timeout" value="2019-04-18-09.19.17.343000">
<input type="hidden" name="linkid" value="3">
<div class="divtable">
<div class="divtablerow">
<div class="divtablecell">Link Type/Category</div>
<div class="divtablecell">
<select name="lltype">
<option value="*HOW-TO" selected>How-To Documents</option>
<option value="*PROMO" >Promotion Information</option>
<option value="*VENDOR" >Vendor Specific Information</option>
</select>
</div>
</div>
<div class="divtablerow">
<div class="divtablecell">Link Name</div>
<div class="divtablecell"><input type="text" name="llname" value="Test Upload" size="50" maxlength="80"></div>
</div>
<div class="divtablerow">
<div class="divtablecell">Description</div>
<div class="divtablecell"><input type="text" name="lldesc" value="Test upload of image file" size="50" maxlength="128"></div>
</div>
<div class="divtablerow">
<div class="divtablecell">Expiration</div>
<div class="divtablecell"><input type="number" name="llsdte" value="0" size="6" maxlength="6">
<input type="number" name="lledte" value="0" size="6" maxlength="6"></div>
</div>
<div class="divtablerow">
<div class="divtablecell">Server Address</div>
<div class="divtablecell"><input type="text" name="llhttp" value="http://10.101.1.97:8999/linklibrary"; size="50" maxlength="128"></div>
<div class="divtablecell">
This is the address where the document can be loaded. (Do not include the actual file name in this field.)
</div>
</div>
<div class="divtablerow">
<div class="divtablecell">Document/File Name</div>
<div class="divtablecell"><input type="text" name="llfile" value="" size="50" maxlength="128"></div>
<div class="divtablecell">If the file is located on a different server than this application, enter the file name here.</div>
</div>
<div class="divtablerow">
<div class="divtablecell">File to upload</div>
<div class="divtablecell"><input name="browserfile" type="file" device="files" size="40"></div>
</div>
</div>
<input type="submit" name="done" value="Save">
</form>

As I said, I can see the file show up in the /tmp folder, but the browserfile_template variable is not getting populated to let the programs know what the temp file names it move it.




-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Raul Jager
Sent: Thursday, April 11, 2019 9:42 AM
To: rpg400-l@xxxxxxxxxxxxxxxxxx
Subject: Re: CGIDEV2 File Upload

Do you have multipart in your form? Is there other input field that reads ok?

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

<input type="hidden" name="ncl" value="/%ncl%/" />

<input type="file" name="imagen" device="files" accept=".jpg" />


RPG: datoaux = zhbGetVar('imagen_tempfile');

On 4/10/19 7:11 PM, Jay wrote:
Has anyone been able to get the file uploading ability to work in CGIDEV2?





I have the input field <input name="browserfile" type="file"
device="files"> defined and can see the PCfile name come through in
the debug session. I can see the upload file appear in the /TMP
folder. But the browserfile_template field that the examples reference has no content.



Zhbgetinput is executing, but doesn't appear to be populating the
_template field.









Jay






-- Este e-mail fue enviado desde el Mail Server del diario ABC Color --
-- Verificado por Anti-Virus Corporativo Symantec --
--
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
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.