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

Restrict PDF upload to Dynamic Media programmatically

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.
diksha_mishra
diksha_mishraAccepted solution
New Participant
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.

2 replies

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

Translate
diksha_mishra
diksha_mishraAuthorAccepted solution
New Participant
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.

Translate