Hi, I'll try to elaborate on that.
I meant that there is a spec about how the container should handle file uploads from browsers: "A container MAY choose to support file uploads from browsers to the RPC endpoint and have the uploaded files be passed as parameters to the RPC..." That is a quote from here: http://opensocial-resources.googlecode.com/svn/spec/1.0/Core-API-Server.xml#rfc.section.4.3 But there isn't an Javascript (JS) API to use it. For instance, if you want to create an Album, you have a server spec and JS API, so you just need to call that JS API to create an album. But if you want to create a MediaItem and upload its content, there's no JS API to do that, although there's a server spec that says how to handle a the creation of a MediaItem and how to handle the content that is being uploaded. I'm just saying that it seems that something is missing on the JS side, since there's a spec of the server side that is about uploading content and no JS to do it. This question might belong to another group tough. Thanks, Gabriel On Sat, Jul 24, 2010 at 5:48 PM, abhijeet mandal <[email protected]>wrote: > i didn't understand what u wanna say pls check it out this may help > http://wiki.opensocial.org/index.php?title=Introduction_To_Signed_Requests > > On 7/25/10, Gabriel Guardincerri <[email protected]> wrote: > > Hi, > > > > Thanks for the response! > > > > But I'm confused. There's a Server spec about uploading content from the > > browser: > > > > > http://opensocial-resources.googlecode.com/svn/spec/1.0/Core-API-Server.xml#rfc.section.4.3 > > > > Do you mean that there isn't a client counterpart spec to support that? > Do > > you know if there's some spec in progress for that? > > > > Thanks, > > > > Gabriel > > > > On Fri, Jul 23, 2010 at 10:13 PM, Robson Dantas <[email protected] > >wrote: > > > >> 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]> > <opensocial-api%[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]<opensocial-api%[email protected]> > <opensocial-api%[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]<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]<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.
