I'm having the same problem. Any suggestions?

Thanks

On 19 abr, 11:53, Sarvesh Exl <sarvesh...@gmail.com> wrote:
> Hello Tiago,
>
> Thanks for replying.
>
> I tried the way you said :
>
> http://www.orkut.com/social/rpc?request=%5b%7b%22params%22%3a%7b%22gr...
>
> This is the URL I created with multipart/form-data request with one the part
> as:
> form-data;name=\"image1\";filename=\"uploaded\"
>
> But still I get this response back:
> {"error":{"message":"unauthorized: Authentication
> failed.","code":401}}{"message":"badRequest: Invalid input - -1","code":400}
>
> Can you help me out here? whats wrong with my request?
>
> Regards,
> Sarvesh
>
> On Sat, Apr 16, 2011 at 9:53 AM, Tiago Silveira (Google) 
> <t...@google.com>wrote:
>
>
>
>
>
>
>
> > Hi, Sarvesh! I recently found that to successfully upload a photo you need
> > to send a multipart request, but the JSON part of the request must go in the
> > URL. So instead of:
>
> > --part type:application/json --
> > { method: 'mediaitems.create', ... }
> > --part type:object/octet-stream --
> > [BLOB]
>
> > You move the request to the URL:
>
> > /social/rpc?request=URLEncode("{method: 'mediaitems.create', ... }")
>
> > This is how our client library does it:
>
> >http://www.google.com/codesearch/p?hl=en#FfgKrVcptGg/java/src/com/goo...
>
> > I've been scratching my head too. I imagine that our photo upload
> > implementation predates the OpenSocial spec, and came at a time when Shindig
> > didn't have multipart processing. But that's a conjecture, I was not there
> > at the time.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "orkut Developer Forum" group.
> > To post to this group, send email to opensocial-orkut@googlegroups.com.
> > To unsubscribe from this group, send email to
> > opensocial-orkut+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/opensocial-orkut?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"orkut Developer Forum" group.
To post to this group, send email to opensocial-orkut@googlegroups.com.
To unsubscribe from this group, send email to 
opensocial-orkut+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en.

Reply via email to