How to Get the URL for a Media Upload in WordPress
This guide will teach you how to retrieve the permalink URL that is generated by WordPress for a file upload if you wish to reference it within, or outside of your WordPress install.
- Log into WordPress
- Go to Media > Library

- If you have not already, make sure you have uploaded your file.
- Click on the media item you want to retrieve the URL for.
- Click on 'Copy URL to clipboard'

Updated on: 12/01/2026
Thank you!
