Noob here, bear with me.
I’m working on a project where we upload thousands of images to WordPress, and figured I could save some time if I could generate my own link strings from the file name instead of copying them from the media library. To do this reliably, it would be nice to know how WordPress renames files.
I’m unclear what you’re trying to do here. Are the images already uploaded and you want to output a list of file names? Or do you want to create a script to upload the images and output the list? Or…?
In any case, all of WP’s functions are available for you to leverage and you can do either of the things I described. If you Google you’ll find code examples and clues to follow.
You can look at the `wp_unique_filename()` function or the similarly named hook.