Jump to content

Advice on Image handeling?


Solarpitch

Recommended Posts

Hi,

 

I am currently developing a site that involves user's being able to upload images as part of an ad. (Items there selling) I want to allow each user to upload up to 5 images. I understand storing the path for one image but how is this achieved for multiple images.

 

Also, whats the best way to approach the layout for the form that will allow the user to upload images. Is something like the way gmail does it where you click browse and a new file field appears. Or is there even someting than I can integrate with my own site?

 

Regards,

Gerard.

Link to comment
https://forums.phpfreaks.com/topic/68892-advice-on-image-handeling/
Share on other sites

There's a section in the manual showing how to deal with multipleimage uploads.

 

When you upload them, store in a separate table containing the userID and imagepath in a separate row for each image uploaded.

 

[pre]

userID  |  path

--------+------------

  1    |  image a

  1    |  image b

  2    |  image c

  2    |  image d

  2    |  image e

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.