05-07-2008 06:13 AM
…
var archivo = null;
var content = null;
var espacioInicial = "";
…
// locate file attributes
for each (field in formdata.fields){
…
else if (field.name == "espacio_inicio"){
espacioInicial = field.value;// The value comes from the admision.get.html.ftl page and it is the initial space where the document will be stored in Alfresco.
}
else if (field.name == "file" && field.isFile){
archivo = field.filename;
content = field.content;
}
}
…
var fecha = new Date();
…
if ((archivo == undefined) || (archivo == null) || (content == undefined) || (content == null)){
status.code = 400;
status.message = "No se pudo localizar el Impreso de Liquidación de Gastos a introducir en Alfresco por "+nombreEmpleado+".";
status.redirect = true;
}
else{
// create document in company home for uploaded file
var placeToUpload = companyhome.childByNamePath(espacioInicial);
upload = placeToUpload.createFile(fecha.getTime()+"-"+archivo); [b]—-> line #93 of the code that throws exception[/b]
…
}
05-07-2008 07:16 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.