在發佈商的瀏覽器中載入資產,而非下載

瞭解如何在發佈者的瀏覽器中載入資產,而非透過變更資產的 Content-Disposition 標頭來下載。

說明 description

有些影像需要載入發佈者瀏覽器,但會自動下載影像。

例如,使用連結發佈影像時: publish-pXXXXXX-eYYYYYY.adobeaemcloud.com/content/dam/images/image.png。 使用者需要在瀏覽器上載入此影像,但預設為已下載。

解決方法 resolution

若要載入資產,資產的 Content-Disposition 標頭必須是"inline"而非"attachment",而非下載資產。

這可透過在自訂vhost檔案中新增以下設定來在Dispatcher層級設定:

< LocationMatch "/content/dam。*.(jpg|png|txt|pdf)。*">

頁首未設定「Content-Disposition」

表頭集內嵌內容 — 處置

< /LocationMatch>

recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f