I am trying to upload a file to Alfresco. Due to a requirement, the alfresco document name does not have a file extension. To rectify this issue, I have been calling the createDocument function and setting the mimeType parameter. However, this mimetype value is not used as it should.
Weaving through the code, I find that this mimetype is passed to the _postMultipart function as the filename. This filename will always be overwritten by the value of 'cmis:name'.
From what I can see, there is no way to set the mimetype if the document name does not have a file extension.
By the way, I have tried setting 'cmis:contentStreamMimeType' but CMIS returns with a READ-ONLY PROPERTY error.
Hi there,
I am trying to upload a file to Alfresco. Due to a requirement, the alfresco document name does not have a file extension. To rectify this issue, I have been calling the createDocument function and setting the mimeType parameter. However, this mimetype value is not used as it should.
Example call:
Weaving through the code, I find that this mimetype is passed to the _postMultipart function as the filename. This filename will always be overwritten by the value of 'cmis:name'.
From what I can see, there is no way to set the mimetype if the document name does not have a file extension.
By the way, I have tried setting
'cmis:contentStreamMimeType'
but CMIS returns with a READ-ONLY PROPERTY error.