Jump to content
Fórum Script Brasil
  • 0

Upload E Gravar Url No Banco


frnd
 Share

Question

Ola..

Como faço para criar uma pagina que receba um upload de um arquivo e que grave no banco a URL do arquivo ao invés de eu colocá-lo lá junto com a tabela(no qual ficaria pesado)?

[]s

Edited by frnd
Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Estou tentando fazer aqui...

Warning: move_uploaded_file(/paginas/midia/foto/Sample_Picture03.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in C:\xampp\htdocs\upload.php on line 19

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '\xampp\tmp\php2C0.tmp' to '/paginas/midia/foto/Sample_Picture03.jpg' in C:\xampp\htdocs\upload.php on line 19

Link to comment
Share on other sites

  • 0
Estou tentando fazer aqui...

Warning: move_uploaded_file(/paginas/midia/foto/Sample_Picture03.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in C:\xampp\htdocs\upload.php on line 19

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '\xampp\tmp\php2C0.tmp' to '/paginas/midia/foto/Sample_Picture03.jpg' in C:\xampp\htdocs\upload.php on line 19

O que tem nessas linhas?

Link to comment
Share on other sites

  • 0

Ah.. já concertei. Era apenas um erro bobo na URL onde eu ia jogar o arquivo carregado..

Tenho outra duvida. Depois que o arquivo é enviado para o servidor, teria como o PHP automaticamente criar uma "miniatura"(a funcao GD trataria isso?) dela?

[]s

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.

 Share



  • Forum Statistics

    • Total Topics
      150.2k
    • Total Posts
      647.4k
×
×
  • Create New...