[ale] Uploading to a web page
Greg Sabino Mullane
greg at turnstep.com
Wed Feb 6 11:12:35 EST 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>> I am trying to create a page that will allow me to upload a
>> file to the webserver.
> If I'm not mistaken, this can be done without any CGI. There's
> a simple javascript that will do this.
Javascript is strictly client-side only (i.e. in the user's
browser). To write something to the webserver, you need a
server-side program, all of which use CGI as the protocol
to do so.
(If you are referring to creation of the "browse" button on
the web page, that's created by the browser via a html
input tag)
The perl CGI module is your best bet - not only is it easy to
use and fairly well documented, but it's completely open
source, so you can see exactly how it does it. Keep in mind that
file uploads can create very large POST request, so you may need
to up your limit in your webserver's configuration file. (I
don't think this is an issue for thttpd, but it definitely is
for Apache).
Greg Sabino Mullane
greg at turnstep.com
PGP Key: 0x14964AC8 200202061110
-----BEGIN PGP SIGNATURE-----
Comment: http://www.turnstep.com/pgp.html
iQA/AwUBPGFV4rybkGcUlkrIEQKFCgCgtQrre9T4gPz/gOvlFbOKXiRm70IAoP1H
2Tl8iOlLdiTOyzsivK+F+NuU
=WXJZ
-----END PGP SIGNATURE-----
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.
More information about the Ale
mailing list