how to get a list of images uploaded to website

  • Go to your media library and switch to the ‘List View’
  • Then under ‘Screen Options’ bump up the ‘Number of items per page’ to a big number

get a list of media uploaded to wordpress

  • Right click to ‘View Page Source, then save it somewhere on your computer
  • Run the following in PowerShell
    foreach ($line in select-string filename C:\Users\matt\Downloads\upload.php | Sort-Object -Property line ) {$line.line.split(">")[3].split("<")[0]}

This gives you a list that looks like this:

list of media files uploaded to wordpress