03-18-2011 05:25 PM
The web script uses the following HTML form data
filedata - (mandatory) HTML type file
<form method='POST' enctype='multipart/form-data' action='http://localhost:8080/alfresco/service/api/upload'>
File to upload: <input type="file" name="filedata"><br />
<input type=submit value=Press> to upload the file!
</form>{
"status" :
{
"code" : 400,
"name" : "Bad Request",
"description" : "Request sent by the client was syntactically incorrect."
},
"message" : "Required parameters are missing",
"exception" : "",
"callstack" :
[
],
"server" : "Community v3.4.0 (b 3262) schema 4,111",
"time" : "Mar 18, 2011 3:24:31 PM"
}03-26-2011 10:16 AM
09-20-2011 10:40 AM
Another way is based on implementing your own WebScript following the upload form example webscript to customize some behaviour if you need:
http://wiki.alfresco.com/wiki/Web_Scripts_Examples#File_Upload
Hope this helps.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.