I am trying to enable the Mail app to save a jpg file into my app’s Documents/inbox folder.

I am currently able to do this with custom UTIs by modifying the CFBundleDocumentTypes and UTImportedTypeDeclarations in the info.plist after my app is built and before it is signed… But I cannot get the same functionality for jpg and other standard UTIs… I have tried all sorts of examples I have found but nothing seems to work… I must be missing something magical.

Can anyone point me to an example that works?