• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

Expiration date for images

Avast

👽 Chevereto Freak
Hey guys,

tightwork/Bryan asked this question about 1 year ago (http://chevereto.com/community/threads/public-gallery-expiration-date-on-images.2349/)

Does someone know, how to realize it?

________

Could it be possible to write a counter function, which compares the expiration value with the timestamp of the uploaded image?
After comparing it, it could execute the following function to delete the database record and the image-files: must_delete_image_record().
EDIT:// wrong function , it only deletes the record if it can't find the image.

But soft-deleting without deleting the record in the database would be better, so no id will be in use twice.
 
there is the built in class function to remove image + record. Check the manage.class.php
 
Back
Top