Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

117
Visualizações
Renaming multiple images files while uploading to MySQL database with php

How are you developers.

I am trying implement a multiple images upload system on my website.

I want to know how to rename multiple images and store their path names into MySQL database using php. But if possible some JavaScript can be added.

I have searched through the net but I have found no working answer. Please help me..... Below is the code.

I am try to avoid images existing files being overwritten in case someone uploads images of the name that are already in the directory.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

You can use the rename function of PHP to rename your files: https://www.php.net/manual/pt_BR/function.rename.php

If you want to rename multiple files, you can create a function that will search through the file folder (using for, while etc) and rename 1 by 1 using some parameter.

To store the file path, you can simply use a mysqli query to store the file path to your database.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda