Back to Support Create content Manage File Links and URLs

Manage File Links and URLs

When you upload a file to your site’s Media Library, a unique URL (also called a link or path) is created. You can use this URL to share the file, add it to your site, or link to it from anywhere on the web. This guide explains how file URLs are structured and how to find them.

File URL Structure

When you upload a file to your site’s Media Library, a unique URL (also called a link or path) is created. This URL consists of the following elements:

For example, https://yourgroovysite.com/wp-content/uploads/2023/01/mygroovyfilename.jpg.

Find a File’s URL

Every image, video, audio file, and document has a unique URL (also called a link). Follow these steps to find the URL:

  1. Visit your site’s dashboard and navigate to Media.
  2. Click on the media file you want to access.
  3. Locate the File URL box.
  4. Click the “Copy URL to clipboard” button next to the link to copy the URL to your clipboard so you can paste/share the media elsewhere.
A box drawn around the button labeled "Copy URL to clipboard"

Change a File’s URL

Once you upload a media file to your Media Library, you cannot directly change the file’s name. However, you can rename the file on your computer and re-upload it to your site’s media. Remember to replace the file wherever you have added it before deleting the original.

If you don’t have the original file on your computer, visit your site’s Media to download the file you want to change the name of.

Reuse a File’s URL

Every file name on WordPress is unique. If you upload a new version of an image or other media item with the same file name, a number will be added to the end of the file name; for example: mygroovyfilename-1.jpg.

However, if you want to replace a file and keep the same URL, you have a couple of options:

Replace a File

If you need to replace a media file, you can delete the existing file and upload a new one with the same name. Follow these steps to delete the media and upload a new file.

  1. Ensure you have a copy of the file on your computer, then delete the media item from your site.
  2. Upload a new file with the same file name.
  3. If the file appears in pages or posts, check that the new version displays correctly.

Add the File to a Page or Post

If you require an unchanged link for sharing purposes, insert the file onto a page (PDFs can be embedded with the File block) so that you can share the same page URL while replacing the media item as often as needed. Follow these steps to create a page for your file:

  1. In your site’s dashboard, navigate to Pages or Posts to create or edit a page or post.
  2. Insert the media file, using the appropriate type of block:
  3. Publish your content, and share the page or post.

On plugin enabled sites, there are third-party plugins that can replace media files that use the same file name. One example of a third-party plugin that is commonly used is Enable Media Replace. You can search for similar plugins as well.

Was this guide helpful for you?

Not quite what you're looking for? Get Help!

Copied to clipboard!