Forum: Ruby Question regarding content-type and multipart form data

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Tor Houghton (Guest)
on 2009-05-06 12:56
(Received via mailing list)

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.:


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

Content-Type: application/x-sh

# blah
echo "foo"

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



This topic is locked and can not be replied to.