Hi !

Actually there isn't a way using the API to upload a file. But in the other
hand, you can implement the feature in two ways:

1- Using html and an iframe (simple example, not tested):

<form action="http://www.myserver.com/upload.php"; target="myframe"
method="post" enctype="multipart/form-data">
    <input type="file" name="myfile">
    <input type="submit" value="send">
</form>

<iframe name="myframe" src="about:blank"></iframe>

2- Using a flash component. I like swfupload which is free:
http://code.google.com/p/swfupload/

Let me know if you have any doubt.

Regards,

Robson Dantas

2010/7/23 gguardin <[email protected]>

> Hi,
>
> I'm want to be able to upload content from the browser, there's a spec
> for the server side, but I couldn't find the JS API.
>
> I'm looking for help on:
>
>  * Finding a JS client that implements content upload
>  * Finding JS API spec for doing that.
>
> I found opensocial.requestUploadMediaItem but it seems to be
> deprecated (http://wiki.opensocial.org/index.php?
> title=Deprecate_redundant_opensocial.*_methods).
>
> Any help will be appreciated.
>
> Thank you,
>
> Gabriel
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "OpenSocial Application Development" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<opensocial-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/opensocial-api?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"OpenSocial Application Development" 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/opensocial-api?hl=en.

Reply via email to