Yes, I think that's what one of the other people on this list was saying in this thread. Ruby has cURL support baked in, and you can invoke it directly within your Rails app as long as you know the correct command format.

Walter

On Nov 1, 2010, at 1:03 PM, Moritz Bruckner wrote:

Just found something on Ruby on Rails Guides:

http://guides.rubyonrails.org/form_helpers.html#uploading-files

Especially this code part:

def upload
 uploaded_io = params[:person][:picture]
 File.open(Rails.root.join('public', 'uploads',
uploaded_io.original_filename), 'w') do |file|
   file.write(uploaded_io.read)
 end
end

Wouldn't you be able to, instead of file.write, transfer the files via
cURL?

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails- [email protected]. To unsubscribe from this group, send email to [email protected] . For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en .


--
You received this message because you are subscribed to the Google Groups "Ruby on 
Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to