I am on 8.3.28 and it appears to be doing the same here. I even waited for a while refreshing the folder containing the uploaded test attachment. I would keep an eye if it does disappear after a few hours!
I tested a video file, if it matters, as it's easier to locate on R2 than to test an image attachment.
If not a PHP 8.3/8.5 issue, could it be XF 2.3.8?
i do not think so except for this one. i only have it enabled for a few members and it is rarely used. reason why i never bothered to check this before lol.
It would be really nice to see in the CF analytics widget if AI bots are throwing a party on my site...
CloudFlare has AI Crawl Control Metrics. I found that Meta AI was getting ridiculous and needed to be blocked.
I tested a video file, if it matters, as it's easier to locate on R2 than to test an image attachment.
If not a PHP 8.3/8.5 issue, could it be XF 2.3.8?
Do you have any attachment-related add-ons installed?
If you are talking about the underlying attachment data file, XenForo only deletes them hourly as part of the attachment clean up. Internally, XenForo treats attachments and attachment data differently (there is an xf_attachment table and a different xf_attachment_data table. When you delete an attachment, the attachment is immediately deleted, but the attachment data (which also includes the data file) is deleted as part of an hourly cleanup process.
If that's what you are seeing, it's nothing to do with the version of PHP, a lag with R2 or anything this addon is doing (it's the same behavior if you are using the local filesystem). It's just how XenForo works (and as always worked as far back as I can remember).