Aaron Blohowiak on 1 Sep 2007 07:55:23 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PhillyOnRails] Using Net::HTTP to make multipart file uploads

  • From: "Aaron Blohowiak" <aaron.blohowiak@gmail.com>
  • To: talk@phillyonrails.org
  • Subject: Re: [PhillyOnRails] Using Net::HTTP to make multipart file uploads
  • Date: Sat, 1 Sep 2007 00:55:10 -0700
  • 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=ukwSc+G9oRX+O/20jTVEOLNrUgf6XuTD4fpfaqSG4H+tr8B5xd6UcA2Z/pdXlMhqsZhmLqpKoj8OJKyUdwl8rOr/DdAvgzzygQ3hLrN+lpmNLubQKM+UCnXAzkhkVMdmJztn9wNepJRVX6zX9oBgmAEt0L5pfi8MmIUTkuhlQyM=
  • List-archive: <http://lists.phillyonrails.org/pipermail/talk>
  • Reply-to: talk@phillyonrails.org
  • Sender: talk-bounces@phillyonrails.org

I think the problem is using ruby to upload files to other sites, not
handling uploads to ruby.

But i could be wrong.

-aaron

On 8/31/07, David Bogus <davidbogus@gmail.com> wrote:
> I haven't done multi-file upload in ruby myself, but you might want to
> take a look at MERB.  The author wrote it, in part, because of not
> liking file up loads in rails.
>
> Dave
>
> http://brainspl.at/articles/2006/10/18/merb-is-useable-and-a-gem
>
> >From an example merb application
> http://svn.devjavu.com/merb/mrblog/trunk/dist/app/controllers/files.rb
>
>   def upload
>     FileUtils.mv params[:data][:tempfile].path,
>
> Merb::Server.config[:dist_root]+"/public/files/#{params[:data][:filename]}"
>     render_no_layout
>   end
>
>
>
>
> --
> Dave's Definitions: Morning, is after I've slept for more than four
> hours. Lunch is the second meal of the day no matter the hour of
> consumption. A long drive is one longer then you have last slept.
> Ineffable, if you don't understand I couldn't possibly explain it.
> _______________________________________________
> To unsubscribe or change your settings, visit:
> http://lists.phillyonrails.org/mailman/listinfo/talk
>
>
_______________________________________________
To unsubscribe or change your settings, visit:
http://lists.phillyonrails.org/mailman/listinfo/talk