1
0
Fork 0

correción bug subida de imagenes

This commit is contained in:
humano 2015-02-23 13:37:12 -05:00
parent 32e7525c47
commit a1713976d5
1 changed files with 5 additions and 3 deletions

View File

@ -95,19 +95,21 @@ window.onload=carga;
//// fin drag div
function resultadoUpload(estado, file,respuesta) {
function resultadoUpload(estado, file,respuesta,id) {
var link = '<br />';
if (estado == 0)
var mensaje = '<img class=" img-thumbnail responsive" src="'+respuesta+'images/secure/?file=600/' + file + '" >' + link;
if (estado == 1)
var mensaje = 'Error ! - El Archivo no llego al servidor' + link;
if (estado == 2)
var mensaje = '<img src="'+respuesta+'images/atencion.gif"> Error ! - Tipo de archivo incorrecto o demasiado grande' + link;
{var mensaje = '<img src="'+respuesta+'images/atencion.gif"> Error ! - Tipo de archivo incorrecto o demasiado grande' + link;
}
if (estado == 3)
var mensaje = 'Error ! - No se pudo copiar Archivo. Posible problema de permisos en server' + link;
document.getElementById('formUpload').innerHTML=mensaje;
document.getElementById('imagen').value=file;
document.getElementById(id).value=file;
}
function resultadoUploadArchivo(estado,file,div) {