Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to write file upload webscript in Alfresco

Tags:

alfresco

I'm trying 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.

like image 931
M-1 Avatar asked Nov 13 '22 15:11

M-1


1 Answers

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>
like image 146
Koushik Samanta Avatar answered Dec 08 '22 00:12

Koushik Samanta