Welcome, Guest
Username: Password: Remember me

TOPIC: Multiple files

Multiple files 08 Feb 2013 10:36 #6686

Hi,
I am developing an app where i would like to record a list of animals, every item will have data, as name, birth, and so, and pictures. I would like to be able to upload a number indefined of pictures. Is it possible to do it in a simple way?
The administrator has disabled public write access.

Re: Multiple files 08 Feb 2013 10:40 #6687

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
Easiest way would be to add another table 'animal_images' and add the animal's id as FK when you store a picture for that animal. This way, you can add as many images as you like.

Hope it helps,

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.

Re: Multiple files 10 Feb 2013 19:57 #6692

Yes, but doing it i should have 2 different/sepparated forms isn't?
Or there is away to integrate both forms?
The administrator has disabled public write access.

Re: Multiple files 10 Feb 2013 23:45 #6693

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
Yes, you'll have 2 forms in builder but, with custom coding you could use Ajax to display/submit your new images and js to dynamically add an "add" & "remove" button after each one.

It's been discussed here before, try searching "multiple forms" and "save multiple tables" to get started and also "Ajaxify". That should get you started...

Good luck,

G
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.
Time to create page: 0.110 seconds

Get Started