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
BedrockMission!

Learn More

View all

Sign in to view all badges

MIME type property null in some cases

Avatar

Avatar
Validate 1
Level 1
lord_azzron
Level 1

Likes

0 likes

Total Posts

10 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
lord_azzron
Level 1

Likes

0 likes

Total Posts

10 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
lord_azzron
Level 1

31-03-2011

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

var formObj = event.target;

formObj.importDataObject(fileHandle);

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?