Ver Mensaje Individual
  #4 (permalink)  
Antiguo 22/06/2011, 07:52
Avatar de iviamontes
iviamontes
 
Fecha de Ingreso: enero-2011
Ubicación: $cubano->Arg->Mendoza
Mensajes: 1.184
Antigüedad: 13 años, 3 meses
Puntos: 209
Respuesta: Error al subir imagen

pero no te hace falta el tipo de archivo, te hace falta el archivo


$tempFile = $_FILES['Filedata']['tmp_name'];

$targetPath = $_SERVER['DOCUMENT_ROOT'] . $_REQUEST['folder'] . '/';
$targetFile = str_replace('//','/',$targetPath) . $_FILES['Filedata']['name'];

move_uploaded_file($tempFile,$targetFile);

así lo hago yo.