|
First, you need to define the form as: <FORM ACTION="/your/cgipgm" method="post" enctype="multipart/form-data"> When your CGI program runs, you must read from standard input until there is no more data, which means you most likely will call it more than once, depending on the size of the file. Now, the biggest problem here is that the data is not just the file name. You will have the header of the file(s), describing it/them, it's name, the boundary names, etc. It's tricky to find these boudaries and seperate the data. The boundaries are used to seperate multiple files in the data stream, as well as mark the ending of the data stream. My 2nd eRPG book has an example of how to do this. It allows you to upload 1 to n files using RPG. It then allows you to specify where to store the file in the IFS. It's tricky with RPG. But not impossible. Brad www.bvstools.com On Wed, 13 Mar 2002 12:00:57 -0600 "Bartell, Aaron L. (TC)" <ALBartell@taylorcorp.com> wrote: > >Am I on the right track? > You are right on the money! How do I send a file to a > CGI program would be > my next question? > > Aaron Bartell > > > > -----Original Message----- > From: Erik Mitsch [mailto:baron@baron-inc.net] > Sent: Wednesday, March 13, 2002 11:57 AM > To: web400@midrange.com > Subject: RE: [WEB400] HTML field value size limit > > > Hey Aaron, > > One question at a time... > > > Is there a limit to the amount of characters that can > be in an HTML field? > > Form fields in HTML can be sized and maxed according to > your own > specifications, as long as you're using the POST method > for data > transmission. > > > So I am wondering first off if we are going to run into > trouble if we have > > a lot of <Client>'s in one form submission, and second, > am I going about > > transferring XML in a totally wrong fashion? > > I have to admit that I don't know a ton about XML, but > considering an XML > document is a file in and of itself, why would you have > them input the XML > into a form like that? I might not have the right idea > on what you're > doing, but the best way for them to get the data to you > would just be to > send you the file (also possible through a form), and > then run it through > your XML parser server-side. > > This way, you don't need to worry about fields, and you > have a complete and > intact file to work with. > > Am I on the right track? > > - Erik > http://www.baron-inc.net > > > _______________________________________________ > This is the Web Enabling the AS400 / iSeries (WEB400) > mailing list > To post a message email: WEB400@midrange.com > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/cgi-bin/listinfo/web400 > or email: WEB400-request@midrange.com > Before posting, please take a moment to review the > archives > at http://archive.midrange.com/web400. > _______________________________________________ > This is the Web Enabling the AS400 / iSeries (WEB400) > mailing list > To post a message email: WEB400@midrange.com > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/cgi-bin/listinfo/web400 > or email: WEB400-request@midrange.com > Before posting, please take a moment to review the > archives > at http://archive.midrange.com/web400. > Bradley V. Stone BVS.Tools www.bvstools.com
As an Amazon Associate we earn from qualifying purchases.
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.