Warning: move_uploaded_file(m.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/sitedesa/public_html/proyectos/fotos/uploadok.php on line 18
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpbBDhon' to 'm.jpg' in /home/sitedesa/public_html/proyectos/fotos/uploadok.php on line 18
Problems with upload
El archivo upload es este y la línea q tira el error es la que tiene el asterisco *:
Código PHP:
           if(isset($_POST['action'])) {
//      if ($_POST["action"] == "upload") {
          $tmpfile = $_FILES['archivo']['tmp_name'];
          $tmpname = $_FILES['archivo']['name'];
          $ftpuser = "usuario";
          $ftppass = "pass";
          $ftppath = "ftp.misitio.com/public_html/proyectos/fotos/";
          $ftpurl = "ftp://".$ftpuser.":".$ftppass."@".$ftppath;
//places files into same dir as form resides
foreach ($_FILES["archivo"]["error"] as $key => $error) {
   if ($error == UPLOAD_ERR_OK) {
       echo"$error_codes[$error]";
       move_uploaded_file(
         $_FILES["archivo"]["tmp_name"][$key],
*         $_FILES["archivo"]["name"][$key]) or die("Problems with upload");
   }
}
}
    header("location: ../../dpanel/06uploadfiles.php");
    exit; 
    Muchas gracias. MArx.
 
 
 


