[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Question regarding content-type and multipart form data

Tor Houghton

5/6/2009 10:55:00 AM

Hello,

I'm possibly missing something, but I'm at a loss at how to obtain the
Content-Type: information for data uploaded using a form, e.g.:

-----------------------------79833303215853703371881803053

Content-Disposition: form-data; name="filename1"; filename="foo.sh"

Content-Type: application/x-sh



#!/bin/sh
# blah
echo "foo"

I see there are methods for extracting the parameter name and filename for
each uploaded object, but I would also like to obtain the content type.

Anyone?

Regards,

Tor