Skip to content

Safari ブラウザでファイルの添付が行えない #1004

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

Closed
yosse95ai opened this issue Apr 16, 2025 · 1 comment
Closed

Safari ブラウザでファイルの添付が行えない #1004

yosse95ai opened this issue Apr 16, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@yosse95ai
Copy link

Bug Description
Safariでコピー&ペースト、D&D、ファイル選択のどれを行ってもファイルが添付できません。

Safariでは ReadableStreamBYOBReader がサポートされていない様です。
https://developer.mozilla.org/ja/docs/Web/API/ReadableStreamBYOBReader

推奨ブラウザをREADMEに記載いただくか、Safari対応いただけると幸いです。

Steps to Reproduce
Steps to reproduce the behavior:

  1. SafariでGenUを開き、チャット画面にアクセス
  2. ファイルの添付を試みる

Expected Behavior
https://github.com/aws-samples/generative-ai-use-cases/blob/main/packages/web/src/hooks/useFiles.ts#L120
ここで File の Mimetype チェックで使ってるライブラリの問題みたいです。

Stream ではなくBuffer の実装に変えれば動きそうです
sindresorhus/file-type#690

@yosse95ai yosse95ai added the bug Something isn't working label Apr 16, 2025
@yosse95ai
Copy link
Author

対応済み:#1001

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant