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
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

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.