Skip to content

Wrapper.upload_file_to_s3など:Content-Typeが取得できないときは、Errorをスローするのではなく、"application/octet-stream"を渡すようにする #362

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 27, 2021

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