ZenphotoCMS Forum
Add title and description when uploading a photo - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Add title and description when uploading a photo (/thread-4826.html)



Add title and description when uploading a photo - jross - 2009-03-10

I have an upload script that uploaods photo to a specific folder, I would like to input the image - title - description and credit directly into the image database.

But I cannot do this becasue when the directory is accessed it overwrites the entry I had entered.

Is there a way I can turn off the database update when the thumbnails are created?




Add title and description when uploading a photo - acrylian - 2009-03-10

No, you need to understand that Zenphoto is filesystem based (http://www.zenphoto.org/wp-content/uploads/2008/09/zenphoto-12-image-discovery12.jpg). It fetches what finds within the albums folder. If you want to have the info automatically fetched the easiest is to use the EXIF/IPTC meta data to attach info.




Add title and description when uploading a photo - sbillard - 2009-03-10

Creating the thumbnails (or any other action) will not overwrite an existing (properly created) database record. So, if your upload script does a $image = newImage(album, imagename); then populates the description, title, and credit fields, then does a $image->save();, nothing will be lost.