Auto Rename Image to $ID number of that record

The recommended method of customizing your AppGini-generated application is through hooks. But sometimes you might need to add functionality not accessible through hooks. You can discuss this here.
Post Reply
tminh
Posts: 28
Joined: 2019-05-23 02:26

Auto Rename Image to $ID number of that record

Post by tminh » 2019-07-06 04:21

How do i Auto Rename Image to $ID number of that record ?
I try to look at all files but cannot know which part for name.
I don't want to use original name of image file.
I think that use ID of that image will be easy for search it on future
thanks

tminh
Posts: 28
Joined: 2019-05-23 02:26

Re: Auto Rename Image to $ID number of that record

Post by tminh » 2019-07-06 05:48

i found : function PrepareUploadedFile

I use this to get the latest record ID but it does not works, please help how do i get latest record id number to assign to image name
$recID = db_insert_id(db_link()); // pmbds.com

Post Reply