Jump to content

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

well my problem is that i want to be able to just select the whole folder and have it automatically process each photo within the folder individually to perform those functions on each. Kind of like facebook does when you upload multiple files.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

×
×
  • 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.