Auto-detect MIME type when using uploadFile API on browser platform
hung-cybo opened this issue · 0 comments
hung-cybo commented
Package
- @kintone/rest-api-client
Why
- When uploading a PDF file by using
KintoneRestApiClient().file.uploadFile()
from UMD files, the MIME type of the attachment is incorrect. Currently, It’sapplication/octet-stream
instead ofapplication/pdf
.
What
- Support auto-detect MIME type by file extension for the browser platform.