upload does not send files after a certain size

Asked

Viewed 37 times

2

Colleagues.

I have a part of the system that sends pdf files to the server:

list($arquivo, $extensao) = explode(".",$arquivoNome);
    $codificar = md5(date('h:i').$arquivo).".".$extensao;
    $dirArquivo = "uploads/pdf/";
    $upArquivo = $dirArquivo . basename($codificar);

    if(move_uploaded_file($arquivoTemp, $upArquivo)){
      ......
}

The problem is that if the file is light, it works, but if the file has above 1MB does not send.

  • That’s right, your server must have a restriction ;)

1 answer

3


If the uploaded files are larger than the value set by the server, changes the upload_max_filesize in php.ini with a suitable value and to finish the process restart apache.

upload_max_filesize=5M
  • upload_max_filesize is the size of uploads sent to the server.

  • max_file_uploads is the maximum number of files sent in the request.

  • the problem the server is external

  • 1

    @Jose.Marcos, see php for the value of upload_max_filesize

Browser other questions tagged

You are not signed in. Login or sign up in order to post.