Restrict PDF upload to Dynamic Media programmatically | Adobe Higher Education
Skip to main content
diksha_mishra
Community Advisor
Community Advisor
November 10, 2023
解決済み

Restrict PDF upload to Dynamic Media programmatically

  • November 10, 2023
  • 1 の返信
  • 836 ビュー

We have been trying to restrict PDF documents upload to Dynamic Media (from AEM 6.5 integrated) without any success.

On manual upload and publish, things look good - only images are sent to DM, not PDFs. But fails programmatically.

Any ideas anyone?

このトピックへの返信は締め切られました。
ベストアンサー diksha_mishra

@vikasbharti that config was already disabled.

We figured out in programmatic upload codebase, there was a typo with the extension. We modified images/pdf to application/pdf to fix this issue.

1 の返信

Adobe Employee
November 10, 2023

See if removing the mime type entry for pdf, which is "application/pdf=PDF" from Adobe CQ Scene7 Asset MIME type Service under http://[server]:[port]/system/console/configMgr helps

diksha_mishra
Community Advisor
diksha_mishraCommunity Advisor作成者回答
Community Advisor
November 10, 2023

@vikasbharti that config was already disabled.

We figured out in programmatic upload codebase, there was a typo with the extension. We modified images/pdf to application/pdf to fix this issue.