07-14-2009 09:19 AM
07-16-2009 09:17 PM
07-18-2009 06:51 PM
public function upload (content:ByteArray):void {
var url:String = "http://localhost:8080/alfresco/service/xpression/uploadNew";
var myByteArray:ByteArray = content;
var request:URLRequest = new URLRequest(url);
request.method = URLRequestMethod.POST;
request.data = myByteArray;
var loader:URLLoader = new URLLoader();
loader.load(request)
}
07-23-2009 03:59 PM
var variables:URLVariables = new URLVariables();
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
variables.bytearray = myByteArray;
request.data = variables;
for each (field in formdata.fields)
{
switch (String(field.name).toLowerCase())
{
case 'bytearray':
content = field.value;
break;
07-25-2009 07:14 AM
upload.properties.content.write(content);
public function upload(content:ByteArray):void
{
var url:String = "http://localhost:8080/alfresco/service/xpression/uploadNew";
var myByteArray:ByteArray = content;
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
var request:URLRequest = new URLRequest(url);
request.method = URLRequestMethod.POST;
var variables:URLVariables = new URLVariables();
variables.bytearray = myByteArray;
variables.name = 'name.zip'
variables.path = '/Company Home/temp/'
variables.mimetype = "text/plain"
variables.type = "cm:content"
request.data = variables;
loader.load(request)
}
07-27-2009 10:16 PM
07-28-2009 07:40 PM
import ru.inspirit.net.*;
public function upload(content:ByteArray, path:String, mtype:String):void {
var ml:MultipartURLLoader = new MultipartURLLoader();
ml.addEventListener(Event.COMPLETE, onReady);
// simple string data
ml.addVariable('path', path);
var currentfilename:String = 'filename.acp'
ml.addFile(content, currentfilename, 'file', mtype);
ml.load('http://localhost:8080/alfresco/service/xpression/uploadNew');
}
public function onReady(e:Event):void
{
// Upload Complete
}
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.