matthew . hawthorne on 31 Aug 2007 21:09:19 -0000

[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 <>
  • To:
  • 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;; 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: <>
  • Reply-to:
  • Sender:

On 8/31/07, Mat Schaffer <> wrote:
> I was just disgusted by this:
> Which caused me to write this:

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

> 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 includes any
client code -- if so, that could be interesting.

I could be missing something -- my Ruby skills are admittedly weak.

To unsubscribe or change your settings, visit: