Jump to content
Fórum Script Brasil
  • 0

Problema com Upload de Imagens


Andryon PHProgrammer

Question

10 answers to this question

Recommended Posts

  • 0

// INI: UPLOAD DE FOTOS DO CLIENTE //

if( $_FILES["EMP_LOGO"] != "none" && !empty( $_FILES["EMP_LOGO"]["name"] ) ){

$type = $_FILES["EMP_LOGO"]["type"];

$size = $_FILES["EMP_LOGO"]["size"];

$temp = $_FILES["EMP_LOGO"]["tmp_name"];

if( $oUtil->validaUpload( $type, true ) ){

if( $size <= 2048000 ){

$newname = "fotos_empresa/". $EMP_ID . ".jpg";

$copied = copy($_FILES['EMP_LOGO']['tmp_name'], $newname);

}

else{

// INI: TRATANDO A MSG DE RETORNO //

$msgTxt = "upSizeErCrr";

$clsTxt = "ok";

$disTxt = "block";

// FIM: TRATANDO A MSG DE RETORNO //

}

}

else{

// INI: TRATANDO A MSG DE RETORNO //

$msgTxt = "uploadErCrr";

$clsTxt = "ok";

$disTxt = "block";

// FIM: TRATANDO A MSG DE RETORNO //

}

}

// FIM: UPLOAD DE FOTOS DO CLIENTE //

Link to comment
Share on other sites

  • 0

consegui fazer apresentar o erro, mas já dei permissões as pastas e continua a mesma coisa

Warning: copy(fotos_empresa/1440.jpg) [function.copy]: failed to open stream: Permission denied in /home/httpd/vhosts/makrosis.com.br/subdomains/sistema/httpdocs/cEmpresa.php on line 442

Erro durante a manipulação do arquivo fotos_empresa/1440.jpg

Link to comment
Share on other sites

  • 0

tambem num deu certo

Warning: move_uploaded_file(fotos_empresa/1440.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/httpd/vhosts/makrosis.com.br/subdomains/sistema/httpdocs/cEmpresa.php on line 442

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpjjoG3b' to 'fotos_empresa/1440.jpg' in /home/httpd/vhosts/makrosis.com.br/subdomains/sistema/httpdocs/cEmpresa.php on line 442

Erro durante a manipulação do arquivo fotos_empresa/1440.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...