|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
Re: [PhillyOnRails] Using Net::HTTP to make multipart file uploads
|
- From: matthew.hawthorne <mhawthorne@gmail.com>
- To: talk@phillyonrails.org
- Subject: Re: [PhillyOnRails] Using Net::HTTP to make multipart file uploads
- Date: Fri, 31 Aug 2007 17:09:08 -0400
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=eHteJyORXNBfrfv1OvCCqNzrarXQsspfs4vF3Vsd4c4lZPlw2St/9JmB1lQ1Wu2vkgkd7rX9IaHE10PjI0xdCdhLZJegjmgqjzqwmtxJ2hSEIEfbIZ/RaO65QAZ+9LsZPNE31tawt1PlxK0DSuwhcQqT9mska+Wf3RyMzQ3XwWs=
- List-archive: <http://lists.phillyonrails.org/pipermail/talk>
- Reply-to: talk@phillyonrails.org
- Sender: talk-bounces@phillyonrails.org
On 8/31/07, Mat Schaffer <schapht@gmail.com> wrote:
> I was just disgusted by this:
>
> http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/113774
>
> Which caused me to write this:
>
> http://tumblr.matschaffer.com/post/10293502
That is quite ugly -- I had a similar feeling when I learned that
Net::SMTP expected me to provide raw email messages as one big giant
string. But it's not so bad once you throw a method around it... I
guess.
> And consider becoming a python developer.
You say that like it's a bad thing...
> Is there really no graceful way to use Net::HTTP to make file
> uploads? Should I be bugging the facets people to include http in
> their UploadUtils class? Or maybe we just need a new 'phacets' gem? :-D
I also tried looking into the ruby amazon s3 client (aws-s3) source
code to see how they do uploads, but I got lost.
Not sure if http://code.whytheluckystiff.net/parkplace/ includes any
client code -- if so, that could be interesting.
I could be missing something -- my Ruby skills are admittedly weak.
later,
matt
_______________________________________________
To unsubscribe or change your settings, visit:
http://lists.phillyonrails.org/mailman/listinfo/talk
|
|