Jump to content

Upload Images, Creating Thumbnails and add them to database


admin2gd1

Recommended Posts

I have been creating a upload form for images that creates a thumbnail and a resized image and placing them in to seperate locations.

 

I have succesfully done this for 1 image without inserting the image into a database.

 

Now I am trying to upload 12 images and resize at the same time and insert them into the database where it updates the rows where the photo goes.

 

So I have these following errors that I have not managed to get round to work.

 

1. The photos I do not think are being picked up from the form correctly for each image.

2. The images will not create a thumbnail for each image.

3. The process thinks that the image is not valid even if the first 2 errors were actually working.

4. Because of error 1, 2 and 3 the photo is uploading into the directories for each image and type (original, resized and thumbnail)

5. Because of the first 4 errors, it doesn't update the database for the ID number in the table specified for the date for last edit.

 

I have uploaded the first stage with just a basic form to create the images and the 2 seperated pages for creating the images and adding them to the database.

 

If I can have some help on correct these errors I would really appreciate it.

 

Thank you.

 

P.S. When the form checks if the file size has gone over the limit, the image files are still uploaded to the directories specified so that needs fixing also.

 

[attachment deleted by admin]

Link to comment
Share on other sites

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.