kintone/js-sdk

Auto-detect MIME type when using uploadFile API on browser platform

hung-cybo opened this issue · 0 comments

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’s application/octet-stream instead of application/pdf.

What

  • Support auto-detect MIME type by file extension for the browser platform.

Background

#1867