Expand my Community achievements bar.

SOLVED

Restrict PDF upload to Dynamic Media programmatically

Avatar

Community Advisor

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?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@Vikas_Bharti 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.

View solution in original post

2 Replies

Avatar

Level 4

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

Avatar

Correct answer by
Community Advisor

@Vikas_Bharti 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.