09-30-2008 10:57 AM
09-30-2008 02:11 PM
10-01-2008 04:17 AM
POST /alfresco/service/jkptk/archive HTTP/1.1
Pragma: no-cache
Content-Type: multipart/form-data
Content-Length: 217
Host: rh:8080
–AaB03x
Content-Disposition: form-data; name="param1"
param1Value
–AaB03x
Content-Disposition: file; name="file"; filename="fileName1.txt"
Content-Type: text/plain
Content of fileName1.txt
–AaB03x
POST /alfresco/service/jkptk/archive HTTP/1.1
Content-Type: multipart/form-data
Content-Length: 35
Host: rh:8080
Name=Rick+Strahl&Company=West+Wind+
var content = "";
var filename = "";
var objectId = "";
var documentClassName = "";
var versionDate = "";
logger.log("Started");
// locate file attributes
for each (field in formdata.fields)
{
if (field.name == "objectId")
{
objectId = field.value;
logger.log(field.name + ": " + field.value);
}
else if (field.name == "class")
{
documentClassName = field.value;
logger.log(field.name + ": " + field.value);
}
else if (field.name == "versionDate")
{
versionDate = field.value;
logger.log(field.name + ": " + field.value);
}
else if (field.name == "file" && field.isFile)
{
filename = field.filename;
content = field.content;
logger.log(field.name + ": " + field.filename);
}else{
logger.log(field.name + ": " + field.value);
}
}
10-01-2008 05:42 AM
POST /share/proxy/alfresco/api/upload?alf_ticket=TICKET_91af0ebeebefdf1722b48624e48e55c8ea9c0b70 HTTP/1.1
Accept: text/*
Content-Type: multipart/form-data; boundary=———-Ij5gL6ei4GI3ae0KM7KM7GI3Ef1Ef1
User-Agent: Shockwave Flash
Host: mikemac01:8081
Content-Length: 1172
Connection: Keep-Alive
Pragma: no-cache
Cookie: alfLogin=1222853195; JSESSIONID=D86206D167F83B0DE3F0C96061155ADF
————Ij5gL6ei4GI3ae0KM7KM7GI3Ef1Ef1
Content-Disposition: form-data; name="Filename"
file1.txt
————Ij5gL6ei4GI3ae0KM7KM7GI3Ef1Ef1
Content-Disposition: form-data; name="thumbnails"
doclib
————Ij5gL6ei4GI3ae0KM7KM7GI3Ef1Ef1
Content-Disposition: form-data; name="containerId"
documentLibrary
————Ij5gL6ei4GI3ae0KM7KM7GI3Ef1Ef1
Content-Disposition: form-data; name="contentType"
Content
————Ij5gL6ei4GI3ae0KM7KM7GI3Ef1Ef1
Content-Disposition: form-data; name="siteId"
site1
————Ij5gL6ei4GI3ae0KM7KM7GI3Ef1Ef1
Content-Disposition: form-data; name="overwrite"
true
————Ij5gL6ei4GI3ae0KM7KM7GI3Ef1Ef1
Content-Disposition: form-data; name="username"
null
————Ij5gL6ei4GI3ae0KM7KM7GI3Ef1Ef1
Content-Disposition: form-data; name="uploadDirectory"
/
————Ij5gL6ei4GI3ae0KM7KM7GI3Ef1Ef1
Content-Disposition: form-data; name="filedata"; filename="file1.txt"
Content-Type: application/octet-stream
Contents of file1.txt
————Ij5gL6ei4GI3ae0KM7KM7GI3Ef1Ef1
Content-Disposition: form-data; name="Upload"
Submit Query
————Ij5gL6ei4GI3ae0KM7KM7GI3Ef1Ef1–
10-01-2008 02:19 PM
10-01-2008 03:55 PM
10-06-2008 02:49 AM
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.