You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Umbraco集成Azure Blob存储:可上传查看图片但前端报404错误

Troubleshooting Umbraco 7.3.1 Azure Blob Media 404 Errors

Let’s work through the most likely fixes for this issue—since you can already upload and directly access the blobs, the problem is almost certainly in how Umbraco is generating or routing media URLs for the frontend.

  • Verify your FileSystemProviders.config setup
    Double-check the media provider configuration in ~/config/FileSystemProviders.config. Make sure:

    • The containerName matches the one you’re using in Azure (you mentioned media-stage, so confirm that’s exactly what’s set here).
    • If you’re using the direct Blob URL, ensure useCdn is set to true and cdnUrl points to your container’s base URL (https://azureaccount.blob.core.windows.net/media-stage/).
    • Also, confirm there’s no conflicting umbracoMediaPath override in your web.config that’s forcing Umbraco to look for local media files instead of Azure.
  • Check Blob container permissions and content types
    Even though you can access the blob directly, frontend requests might fail if:

    • Your container’s public access level isn’t set to Blob (anonymous read access for blobs only). Private containers require signed URLs, which Umbraco 7.3.1 might not handle correctly out of the box.
    • The blob’s Content-Type is incorrect (e.g., application/octet-stream instead of image/png). Browsers can’t render files with the wrong content type, which can look like a 404. Head to the Azure Portal, find your blob, and check its properties to confirm.
  • Clear Umbraco’s media cache
    Umbraco 7.x caches media URLs aggressively. Try:

    • Restarting your application pool to clear in-memory cache.
    • Deleting all files in ~/App_Data/TEMP/ to wipe cached media paths.
    • Using the Umbraco backoffice’s cache clear tool (Settings > Cache > Clear All Cache).
      After clearing, check the frontend’s page source to confirm the img tags are using the Azure Blob URL instead of a local /media/ path.
  • Rule out URL rewrite conflicts
    Look at your web.config for any URL rewrite rules that might be intercepting /media requests. If there’s a rule redirecting /media to a local folder, it’ll block requests to your Azure blobs. Also, ensure umbracoReservedPaths in web.config isn’t excluding your media path from Umbraco’s routing.

  • Confirm version compatibility
    Umbraco 7.3.1 is an older version—make sure you’re using a compatible release of UmbracoFileSystemProviders.Azure. Newer versions of the provider might drop support for legacy Umbraco 7 builds. Check the provider’s release notes to find the version specifically targeted at Umbraco 7.x, then downgrade if needed.


内容的提问来源于stack exchange,提问作者user2887609

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.21 07:50:06