Forum: Ruby Ruby equivalent of filepart

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.
5dfea79f5bd30ca47e7e5260202358b3?d=identicon&s=25 Siddharth Dawara (siddharthdawara)
on 2007-03-22 18:58
I'm looking for a Ruby equivalent of Java's Jakarta HTTP FilePart.

I basically need to send out a post request that contains an uploaded
file to a REST API.

Now the client code that they normally use is Jakarta HTTP. Whose
definition of a multipart post containing a file is here:
http://jakarta.apache.org/commons/httpclient/metho...

I need help to do this in Ruby. Anyone has nay thoughts on this?
Sid.
753dcb78b3a3651127665da4bed3c782?d=identicon&s=25 Brian Candler (Guest)
on 2007-03-22 21:30
(Received via mailing list)
On Fri, Mar 23, 2007 at 02:58:37AM +0900, Siddharth Dawara wrote:
> I'm looking for a Ruby equivalent of Java's Jakarta HTTP FilePart.
>
> I basically need to send out a post request that contains an uploaded
> file to a REST API.
>
> Now the client code that they normally use is Jakarta HTTP. Whose
> definition of a multipart post containing a file is here:
> http://jakarta.apache.org/commons/httpclient/metho...
>
> I need help to do this in Ruby. Anyone has nay thoughts on this?

If you google for "ruby multipart post" you'll find some solutions.

I believe also that Rails has some components which can do this.
This topic is locked and can not be replied to.