![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
22/06/2011, 07:52
|
![Avatar de iviamontes](http://static.forosdelweb.com/customavatars/avatar385922_2.gif) | | | Fecha de Ingreso: enero-2011 Ubicación: $cubano->Arg->Mendoza
Mensajes: 1.184
Antigüedad: 14 años 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. |