Hi Carol,
Please accept my most humble apologies for harping on this issue again :-).
I have a possible 4 image entries plus 4 thumbnails. Your mod correctly deletes the files in the selected directory. As an example.
1001a.jpg
1001b_small.jpg
1001b.jpg
1001b_small.jpg
1001c.jpg
1001c_small.jpg
1001d.jpg
1001d_small.jpg
are correctly deleted leaving all other files intact, provided they do not start with 1001.
My problem is that each addition increments the counter file. The counter file is not decremented with each deletion. With multiple towns and agencies we could reach 9999 quite quickly, creating a potential double deletion problem. I could use 5 or even 6 digits as an ID, but I am concerned that all we are doing is delaying the problem. Given that the image names are associated with the ID I forsee a major maintenance nightmare if and when the limits are reached.
I was wondering how difficult it would be to actually extract the image names from the record and delete the actual file name. The field names are:
Image1 Image1t
Image2 Image2t
Image3 Image2t
Image4 Image4t
Your assistance would be greatly appreciated.
Tks &rgds
G
Please accept my most humble apologies for harping on this issue again :-).
I have a possible 4 image entries plus 4 thumbnails. Your mod correctly deletes the files in the selected directory. As an example.
1001a.jpg
1001b_small.jpg
1001b.jpg
1001b_small.jpg
1001c.jpg
1001c_small.jpg
1001d.jpg
1001d_small.jpg
are correctly deleted leaving all other files intact, provided they do not start with 1001.
My problem is that each addition increments the counter file. The counter file is not decremented with each deletion. With multiple towns and agencies we could reach 9999 quite quickly, creating a potential double deletion problem. I could use 5 or even 6 digits as an ID, but I am concerned that all we are doing is delaying the problem. Given that the image names are associated with the ID I forsee a major maintenance nightmare if and when the limits are reached.
I was wondering how difficult it would be to actually extract the image names from the record and delete the actual file name. The field names are:
Image1 Image1t
Image2 Image2t
Image3 Image2t
Image4 Image4t
Your assistance would be greatly appreciated.
Tks &rgds
G