Forum: Ruby how to use "net/http" upload file with post method?

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.
E595569e0f14843c2ab6feeaa1dae663?d=identicon&s=25 yang cao (Guest)
on 2007-03-28 03:25
(Received via mailing list)
I hava used "ri Net::HTTP",but I did't find anything about upload file.

also means: how can I submit a html form like this:

<form action="/fileupload" enctype="multipart/form-data">
  <input name=filename type=file>
</form>


thanks!
017e05d1a49ffa59ea03e149e7af720b?d=identicon&s=25 Chris Shea (chrisshea)
on 2007-03-28 03:45
(Received via mailing list)
On Mar 27, 7:24 pm, "yang cao" <caoyangr...@gmail.com> wrote:
> I hava used "ri Net::HTTP",but I did't find anything about upload file.
>
> also means: how can I submit a html form like this:
>
> <form action="/fileupload" enctype="multipart/form-data">
>   <input name=filename type=file>
> </form>
>
> thanks!

This has been discussed before.  You can find answers by searching.
For instance:
http://groups.google.com/group/comp.lang.ruby/sear...

HTH,
Chris
This topic is locked and can not be replied to.