Ver Mensaje Individual
  #5 (permalink)  
Antiguo 10/10/2012, 12:54
JAGL1204
 
Fecha de Ingreso: octubre-2012
Mensajes: 1
Antigüedad: 11 años, 6 meses
Puntos: 0
Respuesta: application/octet-stream despues de un upload

prueba con eso Rony...
Código PHP:
 <?php
include "conexion.php"

if(
$_FILES["Filedata"]){ 

 
$path "videos"
 if(
is_uploaded_file($_FILES["Filedata"]['tmp_name'])){
  
$nombre $_FILES["Filedata"]['name'];
  
$type $_FILES["Filedata"]['type'];
  
$peso $_FILES["Filedata"]['size'];
  
copy($_FILES["Filedata"]['tmp_name'],"$path/$nombre");
  
$ruta "$path/$nombre";
  if(
file_exists($ruta)){ 
   
$query "INSERT INTO archivos (id, ruta, tipo, size) VALUES (0,'$nombre','$type','$peso')";   
   
mysql_db_query($database,$query,$link) or die(mysql_error());
  } 
 }
 
}
?>