Method to store uploaded files (pdf) without modifying path.

Topic summary

A user is migrating hundreds of products from a non-Shopify site, each with PDF spec files that follow an organized naming convention based on product titles. The concern is that Shopify’s media system assigns random URLs to uploaded files, making bulk mapping difficult and future updates (which occur frequently) painful.

Proposed Solution:
Shopify’s Content > Files maintains a predictable URL structure where only the filename changes in the path (e.g., cdn.shopify.com/s/files/[store-id]/files/[filename].pdf). The base URL remains consistent across uploads.

Recommended Approach:

  • Upload all PDF files to Shopify’s file system
  • Use text editing software to perform bulk find-and-replace operations, swapping old URLs for new Shopify CDN URLs
  • This eliminates the need for individual file path editing

Status: The discussion appears resolved with a workable bulk-update solution, though the original poster’s final confirmation is pending.

Summarized with AI on November 1. AI used: claude-sonnet-4-5-20250929.

We are migrating from a non-shopify site. Store has several hundred products. Each product has a pdf spec file. I have the current url of every file - they follow an organized naming structure where the file name is named afte the product title. Shopify’s normal content/media file system will assign a random url to every pdf. Initial upload will be tremendous effor needing to map each file to a product - whereas if the file name did not change I can simply edit the url of the file path in bulk. The specs change frequently, so updating one would be painful also.

Shopify aside, is it even possible to have a non-shopify webspace/host living under the primary domain.

Hey, when uploading files under Content>Files, you can maintain a certain URL structure.

After uploading all files, you can append the rest of the URL and be good to go.
For example, there are 2 files uploaded - note that the only difference in the URL is the file name.

Example 1: https://cdn.shopify.com/s/files/1/0790/0807/1979/files/Studio_Enchant_Shopify_benefits.png?v=1739037372

Example 2: https://cdn.shopify.com/s/files/1/0790/0807/1979/files/Studio_Enchant_Shopify_page_asset.png?v=1739037372

If you need further assistance, feel free to contact us!

Thank you. Unless I’m missing something obvious I don’t see this as any global option. I think I can individually edit the path of uploaded media, if that’s what you mean ?

@JoeCat
You can just use any text editing software and replace the old url to the new one.

There is no need in doing it individually