Ver Mensaje Individual
  #4 (permalink)  
Antiguo 25/03/2008, 10:41
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Re: Campos BLOB (no lo almacena)

Mmm prueba hacer esto:
Código PHP:
    // Preparamos los datos del fichero.
    
$tamanyo = (($_FILES['fichero']['size']/1048576));
    
// $fichero = addslashes(file_get_contents($_FILES['fichero']['tmp_name']));
    
if( !is_uploaded_file$_FILES['fichero']['tmp_name'] ) ) {
         die( 
"No se envio un fichero valido!" );
    }
    
$fichero addslashes(file_get_contents($_FILES['fichero']['tmp_name']));
    if( empty( 
$fichero ) ) {
           die( 
"El fichero esta vacio!" );
    }
    
$fecha_insercion date("Y-m-d"time());
    
$contenido_valido $_POST['eleccion'];
    
$idNombre $_SESSION['nombreUsuario'];
    
$idClave $_SESSION['claveUsuario']; 
Saludos.