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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Tor Houghton (Guest)
on 2009-05-06 12:56
(Received via mailing list)
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
This topic is locked and can not be replied to.