|
Aaron, Another option is Java. I know that there are several good servlet implementation available for the downloading. The way I have handled uploads is to use the file upload tag that is part of the Struts Tag Library. It is not perfect, but if you are using Struts, 10 minutes tops and you have an upload defined. You can get more information about Struts from http://jakarta.apache.org/struts. O'Reilly also has an upload class. To answer Bob's earlier question. The servlet container in this case should define the upload target directory. That is part of the Servlet 2.3 specification, I don't think it has always been part of the spec. David Morris >>> brad@bvstools.com 03/13/02 12:09PM >>> 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
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.