I tried everything I could to upload a file to a service using oauth,
but without success.
What I'm trying to do is something like
@access_token.put( url, hash, { 'Content-Type' => 'multipart/form-
data' } )
The request is in fact multipart, but the parameters are completely
weird:
"videobrief"=>{"head"=>"Content-Disposition: form-data; name=\"contest
[videobrief]\"; filename=\"Zooppa_Video.flv\"\r\nContent-Type:
application/octet-stream\r\n", "name"=>"contest[videobrief]",
"type"=>"application/octet-stream", "filename"=>"Zooppa_Video.flv",
"tempfile"=>"#<File:0x102482300>"}
This should be a file, at least when I send it, it is a file.
Someone has an idea or did it before ?
ngw
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"OAuth" 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/oauth?hl=en
-~----------~----~----~----~------~----~------~--~---