I think that the only way to have documents correctly recognized in the repository after import via the API is to include the file extension. Is this correct? It doesn't appear that there is a way for me to pass in the specific MIME type e.g. application/pdf so I need to include the file extension.
If I don't include the file extension, the file is unreadable.
If I am correct so far, the only downside is that all documents include the file extensions in the repository, where documents imported into the repo (not via the repo) do not have file extensions. It's not a show stopper but will be confusing for some users and create an inconsistency.