[REBOL] Re: CGI, uploading file using HTTP, server side
From: rebol:meurrens at: 28-Jun-2003 14:55
I modified your 'decode-multipart-form-data script a little bit
to let it process multiple form fields sharing the same name
(such e.g. as a password entry field)
in a way strictly similar to what is done with the 'GET method,
this is by defining a block! of values.
(search for the string "decode-multipart-form-data" and,
specifically, near "handle-mime-part" in my source).
To understand what it means for the user, fill in the example at URL
and watch the probe of the result.
Btw, my make-cgi.r script is now mature enough to reach version number 0.1.0
and... to let me work to other things.
I consider the script as finished now, at least for a while...
It's available, for you all, at URL
The last small todo's and issues:
--- content-length (Olivier + recent/current ML thread on "POST"),
--- content-transfer-encoding (Graham, Andreas, RFC 1867),
--- to-rebol-file (Mario),
--- misc. discussions with Olivier, Graham, Andreas and Mario, etc
are all solved and the synthesis of these discussions
is in the abobe page and/or in the source code comments.
The number of features, examples and tools was increased to encounter
discussed in private mails and/or in this ML and/or on published papers:
--- uploading of multiple files (Mario),
--- uploading from a client REBOL script (paper of Graham + my script
on the above page)
--- providing a "unique" temporary name for uploaded files (my "file" object)
Prof. Ir Marc Meurrens, Brussels (be)
TEL: +32 (0)2 537 2812
FAX: +32 (0)2 537 7645
Please don't mail me attached files, instead, use my 'exchange area' :
EXCHANGE AREA: http://www.meurrens.org/exchange/
(HTTP/FTP upload/download of temporary/persistent files)