Recent activity
Subscribe to this feed
tonio replied on May 06, 2009 17:33 to the question "Oauth multipart file upload/post" in OAuth:
Yes, sure:
I'm using Oauth 0.3.2 in both sides (client and provider).
In the client side I'm doing this:
response = @access_token.post("/api/upload?type=#{params[:type]}", {:title => @stream.title, :description => @stream.description, :file => @stream.file.read}, { 'Accept' => 'application/xml', 'Content-Type' => 'multipart/form-data' })
file is an attr_accessor of the model
In the provider side I'm just doing a .read to the :file param and proccess it.
Cheers,
Tonio
tonio replied on April 28, 2009 11:39 to the question "Oauth multipart file upload/post" in OAuth:
tonio replied on April 03, 2009 12:03 to the question "Oauth multipart file upload/post" in OAuth:
-
tonio started following the question "Oauth multipart file upload/post" in OAuth.
Loading Profile...

