Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7735815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:35:40+00:00 2026-06-01T07:35:40+00:00

I now have a file uploader that goes on like this This is the

  • 0

I now have a file uploader that goes on like this

This is the index.php:

<form action="sendfotos.php" method="post" enctype="multipart/form-data">
Imagem: <input name="imagen" type="file" size="35"> <br />  
<input name="submit" type="submit" value="Upload"> 
</form>

This is the sendfotos.php:

<?php
$conexion=mysql_connect("host","user","password")or die("Problemas en la conexion");
mysql_select_db("bdname",$conexion) or
  die("Problemas en la seleccion de la base de datos");
$nomimagen= $_FILES['imagen']['name'];
if(move_uploaded_file ( $_FILES [ 'imagen' ][ 'tmp_name' ], '../gallery/user/'.$_FILES [ 'imagen' ][ 'name' ])) {
    echo "<link rel='stylesheet' href='adminstyle.css' type='text/css' media='all'><div id='page'><div id='agendasend'><br><br>Midia añadido con exito<br><br><br><a href='fotos.php'>Volver</a></div></div>";
mysql_query("insert into galeriafotos (imagen,id) values 
                        ('$nomimagen','$_REQUEST[id]')");
} else{
    echo "There was an error uploading the file, please try again!";
}  
?>

But now I need to use a multiuploader, which is the best solution? Upload multiple files at once and still save each one of them in the MySQL database.

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T07:35:42+00:00Added an answer on June 1, 2026 at 7:35 am

    Create function that moves uploaded file into your photo folder and inserts it into database then iterate over multiple files received by POST and call that function on each one. This is for not repeating code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Right now I have a PHP file that does a MYSQL query and then
I have a JavaScript application that works like this: Uploads a file, receives the
I have a file with characters like thi: ABCD...HHCCCCHH..BC Now, I want to remove
I have this file structure: folderIWantStuffIn/ - old_stuff Now I want to add some
I have now 4 url's with from the same file: http://domain.com/picture.php?name=kim kardashian http://domain.com/picture.php?name=kim-kardashian http://domain.com/picture/kim
I am using autoconf. Right now I have an intermediate .cpp file that is
Can someone explain to me why this happens? I have a file called profile.php
I'm using this pluging to upload files: https://github.com/valums/file-uploader But now I starts the upload
I have a flash file uploader that allows uploading multiple files in one shot.
I have a simple file uploader, which thanks to stackoverflow is now fully working,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.