Problem Creating Assets with AssetManager
So I have found a fix for this problem but I wanted to know why its happening and if it means my implementation is wrong somewhere.
I am using AssetManager from the com.day.cq.dam.api package and creating PDF assets with the line:
assetManager.createAsset(path, inputStream, "application/pdf", true);
Although they are being created and show up in the forms portal they don't have all the functionality that a pdf form has if I just manually upload it through the portal itself. The only options I have are to select the form and download it, if I then attempt to download the form as a binary file I get the error "Unable to detect the asset type".
I looked at the differences between manually loaded assets and my created asset and the solution for me was adding the property:
name: pdfForm
type: long
value: 1
to the jcr:content node under the new asset.
I'm mostly curious if this is just an accepted problem or If it gets the type somewhere other than mimetype: application/pdf.