⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

How to upload multiple images for a data row



user35000
  • profile picture
  • Member

Posted 04 October 2012 - 14:29 PM

I have [b]three(3)[/b] tables in my database.

The[b] base table[/b] with textual data about a record(id, title, text, price).
The [b]thumbnails[/b] [b]table[/b] that connects to the [b]base table[/b] via foreign key([b]id[/b]) to hold the filename of thumbnail images for every record(usually [b]one[/b] thumbnail per data row).
The [b]images table[/b] that connects to the [b]base table[/b] via foreign key([b]id[/b]) to hold filenames of [u]multiple,[/u] [u]large[/u] images per [b]each(1)[/b] record(images of the same item from different angles and sides).

My form has [b]two[/b] fields for [u]images[/u] and [u]a thumbnail[/u] right now(besides the id, title, text and price fields): the thumbnail image upload([b]1[/b]), and an image upload([b]1[/b]). I want to make the[b] image upload field[/b] accept more than [b]one[/b] image.

I couldn't find it anything about it, but is there a way to have the [b]GroceryCrud[/b] have an image upload field that can accept [b]multiple[/b] images? Perhaphs a "+" sign that you click to add another field to add another image for upload.

alvarito
  • profile picture
  • Member

Posted 11 October 2012 - 07:05 AM

I haven't seen anything in that direction. I am currently trying to work out doing something similar but I am doing it using different upload buttons, which uploads alright and that should be no problem. The problem is when you try to resize different pictures to different sizes. that is what is not working.