Amigos, probé poner el código sin ninguna validación de tamaño y tipo de imagen:
Código PHP:
Ver originalinclude ('funciones.php');
$foto_nombre = $_POST['foto_nombre'];
$mini_nombre = $_POST['mini_nombre'];
//FOTO GRANDE
$tipo ='jpg';
$destino='../../images/galeria1/large';
move_uploaded_file ( $_FILES [ 'foto' ][ 'tmp_name' ], $destino . '/' .$foto_nombre.'.'.$tipo);
//MINIATURA
$tipo1 ='jpg';
$destino2='../../images/galeria1/thumbnails';
move_uploaded_file ( $_FILES [ 'miniatura' ][ 'tmp_name' ], $destino2 . '/' .$mini_nombre.'.'.$tipo1);
Esto me la sube la primera vez y luego no la sube mas.
le hice un var_dump y me salio esto:
array(2) { ["foto"]=> array(5) { ["name"]=> string(11) "sample1.jpg" ["type"]=> string(11) "image/pjpeg" ["tmp_name"]=> string(27) "C:\WINDOWS\TEMP\php5D9D.tmp" ["error"]=> int(0) ["size"]=> int(19905) } ["miniatura"]=> array(5) { ["name"]=> string(11) "sample1.jpg" ["type"]=> string(11) "image/x-png" ["tmp_name"]=> string(27) "C:\WINDOWS\TEMP\php5D9E.tmp" ["error"]=> int(0) ["size"]=> int(47100) } }
No entiendo este error...
Por favor pueden ayudarme, gracias.