Dave Cragg wrote:

On 25 Apr 2008, at 21:18, jbv wrote:

Has anyone already tried to parse data from a multipart/form-data html
form
(that contains a type=file element) with Rev cgi ?
I've done it successfully in the past with ascii data, but now I'm
trying to post
jpeg data along with other parameters (height & with of the pic, session
#...)
in the same form, and obviously the jpeg binary data get corrupted in
the process...

I've done this before with jpeg files uploaded as binary data. I can't find the script I used, but I think the handler below is what I used to parse the form data. It's based on a libCGI script that Jacqueline Gay used to distribute. It will handle standard and multipart forms.

Just for the record, libCGI is Rodney Tamblyn and Monte Goulding's work. The link I used to have for it is broken now though; if anyone has a more recent one I can update my site.

--
Jacqueline Landman Gay         |     [EMAIL PROTECTED]
HyperActive Software           |     http://www.hyperactivesw.com
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to