este es el codigo
Código PHP:
Ver original
foreach ($_FILES as $file) { /*echo "<pre>"; print_r($file); echo "</pre>"; */ $temp_foto[] = $file['tmp_name'];//Nombre temporal para el servidor $nom_foto[] = $file['name']; //Nombre original de la imagen $nom_foto[] = "../files/". $nom_foto;//Nombre foto unido con la ruta.. Nombre de la carpeta "img/" echo "<pre>"; echo "</pre>"; /*if (!move_uploaded_file($file["tmp_name"], $uploadfile)) { echo set_e('error','Image ['.$i.'] not uploaded',''); }*/ } //Envio de informacion /*$report = new Report($_POST['aseguradora'],$_POST['no_reclamo'],$_POST['no_poliza'],$_POST['asegurado'],$_POST['fecha'] ,$_POST['ramos'],$_POST['reserva_provisional'],$_POST['detalle_siniestro'],$_FILES['file'],$_POST['id'],ucwords($_POST['pass_tasador'])); $report->noExpediente(); $report->createReport($_FILES['file']['name']);*/ } else { echo "No se pudo"; }
Este es el arreglo que se esta enviando
Código HTML:
Ver original
Array ( [file] => Array ( [name] => Array ( [0] => 12039744_968808043226540_8836841275642724874_n.jpg [1] => 13006718_604980126323974_5470922742045184003_n.jpg [2] => 13043626_1047778635287541_7145193617591323464_n.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\xampp\tmp\phpBB0A.tmp [1] => C:\xampp\tmp\phpBB1A.tmp [2] => C:\xampp\tmp\phpBB1B.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 35623 [1] => 21265 [2] => 27253 ) ) )