AnsweredAssumed Answered

Alfresco 2.1 - web scripts - file upload

Question asked by lorty on Jul 6, 2007
Latest reply on Aug 2, 2007 by santigt
Hi all,
I am trying to use Alfresco as a document storage engine for a Ruby on Rails app.
Reading the Alfresco Blog I learned the best way to accomplish this is to use the new web scripts feature.
I wrote a simple webscript to create a file, but  I have 2 questions:

1) how do I actually upload the file content from a form? As soon as I use a multipart/form-data form, I am not able anymore to retrieve "args" from the webscript. Am I missing somethig obvious here?

2) how is authentication performed from webscripts? How can I authenticate from an external (Rails) app?

I also tried to upload a file from my Rails app using the standard web services, I was able to authenticate and query the repository (using the ruby toolkit), but I'm stuck at creating new content (CMLCreate??), I only found examples in .NET and Java.

Any help would be great!
Thanks in advance,

Lorenzo Musizza
1000 ASA

Outcomes