This issue is not related to large file.
The issue occurs when the back end returns wrong MIME type for ex. application/json instead of application/pdf.
The external api used to fetch file based on filestore id.
"/filestore/v1/files/id/....
Currently we can gracefully handle this response failure in the UI by showing an error message by checking the MIME type before Doc viewer internally checks it.
But the root problem lies within the API's response.
This issue is not related to large file.
The issue occurs when the back end returns wrong MIME type for ex. application/json instead of application/pdf.
The external api used to fetch file based on filestore id.
"/filestore/v1/files/id/....
Currently we can gracefully handle this response failure in the UI by showing an error message by checking the MIME type before Doc viewer internally checks it.
But the root problem lies within the API's response.