5

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.

4

1 Answer 1

1

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>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.