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



I usualy upload files using NetData.
I just need to ask for the file in a form and the browser will return a copy in
the "upload directory"

_______________________________________________________
Erik Mitsch wrote:

> > So where does the file end up when it is sent? Is there a configuration
> > setting for this, and does the file's ID or name get sent to the CGI
> > program?
>
> That's actually up to your CGI script.  Brad has it right - it's shipping
> all of the data, however it is encoded.  It's up to your CGI program to
> dissect it and make sure everything gets to the right place.  If you were
> uploading a text file that happens to be the source for a Java program, for
> example, your CGI would have to create the source file on the 400 and plant
> all that data in there.  What you do with it from there is up to you and
> your needs.
>
> When the form submission (including the file) actually comes across to your
> CGI, it's going to look kind of like this:
>
> ---------------------------------6099238414674
> Content-Disposition: form-data; name="the_file"; filename="clients.xml"
>
> [The source of the file, however it may be encoded]
> ---------------------------------6099238414674--
>
> Your CGI will have to be able to find this object in the submission by name
> ("the_file"), then extract the filename (creating a new file on the server
> if you want), and then plant the source of the file into that new file.
>
> I have absolutely no idea how to do this in RPG, but I can tell you that in
> Perl/CGI, it's not too bad of a process overall because Perl was built to do
> this kind of thing.  If Brad says it's tricky in RPG, I believe him. :)
>
> - Erik
> http://www.baron-inc.net
>



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.