As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
… 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] … }