Jump to content

Uploading an image folder using php/mysql


mikebarbaro

Recommended Posts

Hello,

 

I have developed a gallery in PHP and MySQL that currently has an upload form with one file upload field. Once I select an image to upload the form then uploads the selected image and stores it's URL in the MySQL database as a random name. The problem is that I upload a new gallery weekly that contains more than 100 photos so this gets very time consuming to do each photo individually.

 

I'd love some direction trying to build a gallery that does the following after selecting the folder to upload:

 

1. Gives a random name to each individual photo from the selected folder

2. Uploads them into a directory

3. Stores the individual paths to the MySQL database

 

Any help or direction is highly appreciated!

since you have already done most of the work, I won't insult your inteligence by stating the obvious ways to do numbers 1 and 3 on your list.

to upload the images to a certain directory, you will want to use the move_uploaded_file() function

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.