Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

MIME type property null in some cases


Level 2

I am writing a form attachment object in designer using the normal javascript method:

var formObj =;


Which is fine. But I want to allow only word or pdf files, so I use

fileObj.MIMEType == "application/msword";

to see if it is a word document for instance. The problem is that MIMType  is returning null when I run it with Acrobat Pro 9. When running the form under Reader 9 & Reader 10 it returns the mime correctly.

The form is reader extended through LiveCycle ES and each time I rendered the same form SmartForm Centre, so Im certain it's the same code. Anyone ever come across this before?

0 Replies