Restrict PDF upload to Dynamic Media programmatically | Community
Skip to main content
diksha_mishra
Community Advisor
Community Advisor
November 10, 2023
Solved

Restrict PDF upload to Dynamic Media programmatically

  • November 10, 2023
  • 1 reply
  • 836 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by 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 reply

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 AdvisorAuthorAccepted solution
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.