Skip to content

Conversation

yuji38kwmt
Copy link
Collaborator

@yuji38kwmt yuji38kwmt commented Sep 27, 2021

現状

ファイルをS3にアップロードする際、ファイルパスからMIME Typeを推測できない場合、AnnofabApiExceptionをスローする

対応した内容

content-typeに"application/octet-stream"を渡しても特に問題はないので、ファイルパスからMIME Typeを推測できない場合は、"application/octet-stream"をAPIに渡すようにする。

@yuji38kwmt yuji38kwmt changed the title content-typeが推測できないときの処理を変更 Wrapper.upload_file_to_s3など:Content-Typeが取得できないときは、Errorをスローするのではなく、"application/octet-stream"を渡すようにする Sep 27, 2021
@yuji38kwmt yuji38kwmt merged commit 3f5cea4 into master Sep 27, 2021
@yuji38kwmt yuji38kwmt deleted the upload_file_to_s3 branch September 27, 2021 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant