Jump to content
Fórum Script Brasil
  • 0




Caros Amigos, tenho os seguintes códigos aqui


<form method="post" action="upload.php" enctype="multipart/form-data">
            <label>Enviar Arquivo</label>
            <input type="file" name="arquivo" />
            <input type="submit" value="Enviar" /></form>



/* Insira aqui a pasta que deseja salvar o arquivo*/
$uploaddir = 'ftp_artefinal/';

$uploadfile = $uploaddir . $_FILES['arquivo']['name'];

if (move_uploaded_file($_FILES['arquivo']['tmp_name'], $uploadfile)){
     // redireciona para a url
     header("Location: http://www.bigbrindesgo.com.br/arq_env.html");
else {
     // redireciona para a url
     header("Location: http://www.bigbrindesgo.com.br/erro_env.html");



E o seguinte erro:

Warning: move_uploaded_file(uploads/teste2.pdf) [function.move-uploaded-file]: failed to open stream: No such file or directory in C:\Inetpub\vhosts\bigbrindesgo.com.br\httpdocs\ftp\upload.php on line 9

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\Windows\Temp\php87FD.tmp' to 'uploads/teste2.pdf' inC:\Inetpub\vhosts\bigbrindesgo.com.br\httpdocs\ftp\upload.php on line 9

Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\vhosts\bigbrindesgo.com.br\httpdocs\ftp\upload.php:9) inC:\Inetpub\vhosts\bigbrindesgo.com.br\httpdocs\ftp\upload.php on line 15


alguém poderia me dar uma luz...

Edited by Carlos_Marques_Jga
Correção de texto
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

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

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
    • Total Posts
  • Create New...