When you upload an image or file to WordPress, it automatically generates a unique URL. This URL allows you to share the file within your website or externally via emails, social media, or other platforms.
How to Upload a File in the WordPress Media Library
Log in to WordPress.
Hover over +New in the Admin toolbar and select Media from the dropdown. Or from the left-hand menu, navigate to Media> Add Media File.
Click Select Files and locate and choose the files on your computer. Alternatively, you can also drag and drop the files from your computer folder into the upload area.
How to Copy and Use the Media File Link
Click the uploaded file in the Library to open the Attachment Details. Then, click Copy URL to clipboard.