AnsweredAssumed Answered

Accessing Mime Attachments in Web Scripts

Question asked by r1ch4rd on Oct 8, 2008
Latest reply on Feb 20, 2009 by venky0589
Hi Folks,

How can I access Mime Attachments when running at HTTP POST or PUT operation on a web script which I am writing to provide a RESTful service to my Alfresco repository?

I am writing a Share Dashlet which needs to deliver generated content (not from a file upload form) to the repository, but I can't find a way in the Web Scripts environment to access POSTed content.  Actually, further to that, I'm finding it difficult even to generate the appropriate POST using the "remote" javascript object in Share.  At the moment it looks like I'm going to have to literally mock up a mutlipart formdata POST so that I can access the content via the "formdata" Web Script object.  This is obviously a terrible way to go about this, so I must be missing something …

Any suggestions greatly appreciated.