how to write file upload webscript in Alfresco
I'm tr开发者_如何转开发ying to make a webscript in Alfresco to upload a file. I'v made and all is needed to upload the selected file on form submit.
No working samples available on wiki.
Thank you in advance.
Use The below form to upload a file on alfresco repository.
<form method="post" name="uploadForm" enctype='multipart/form-data' id="upload_form" action="http://localhost:8080/alfresco/service/api/upload">
<input type="hidden" name="destination" id="destination" value="workspace://SpacesStore/3f132339-bac1-4e0c-be03-b2ec5dbea61b" />
<input type="hidden" name="overwrite" id="overwrite" value="false" />
<input type="hidden" name="description" id="description" value="This is a test desc" />
<input class="button" type="file" name="filedata" id="filedata" />
<br />
<input class="button" type="submit" name="submit" value="Upload" />
</form>
精彩评论