
22/06/2011, 07:52
|
 | | | Fecha de Ingreso: enero-2011 Ubicación: $cubano->Arg->Mendoza
Mensajes: 1.184
Antigüedad: 14 años, 2 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. |