Forum: Ruby on Rails Ruby on Rails equivalent of filepart

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.
Siddharth D. (Guest)
on 2007-03-22 20:00
I posted in the Ruby forum by mistake :( This is actually in Rails.

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. Whose
definition of a multipart post containing a file is here:

I need help to do this in Ruby. Anyone has nay thoughts on this?
This topic is locked and can not be replied to.