Here’s a controlled test scenario:

Connect your iPhone to your computer using a USB cable. Make sure to trust the computer on your iPhone.

Do not rely on the mobile DiskDigger app for true photo recovery. Use the desktop version with an iTunes backup.