AnsweredAssumed Answered

Upload files using webscript

Question asked by mihai on Jul 29, 2009

Is there anybody hwo can provide an client side example for uploading files in Alfresco spaces? I presume I shoud use

Package: /org/alfresco/repository/upload
File Upload
POST /alfresco/service/api/upload

Upload file content and meta-data into repository.
HTML form data

    * filedata, (mandatory) HTML type file
    * siteid
    * containerid
    * uploaddirectory
    * updatenoderef
    * filename
    * description
    * contenttype
    * majorversion
    * overwrite
    * thumbnails

Return content

    * nodeRef

I don`t understand how this can be done. Please reply!