One more question about Rev cgi & binary data

J. Landman Gay jacque at hyperactivesw.com
Sat Apr 26 20:27:16 EDT 2008


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         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list