Downloading through content rest service does not return the original filename


On ContentRestService requesting getDocumentContent does not return the original filename. There is any way to get the original filename from the uploaded document?

No filename data available in the uploaded file

The getDocumentContent method return the binary content of the file but the name of the file that is assigned in its metadata is sent in the Content-Disposition header. If it’s possible for you, the header will give you this information along with the file. If you don’t want to retrieve the whole content to get this information, you can use the content manager API. Each version of the content has associated content metadata. If you need to get the name of the content you can use the method getContentMetadata.


This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.