Skip to content
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

ファイルが正しく復号されない (正当性エラー) #14

Closed
kaminomisosiru opened this issue Sep 4, 2023 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@kaminomisosiru
Copy link

問題の内容

txtとjpegの2種類のファイルをアップロードしたところ、jpegの場合に壊れたファイルが復号された。

実行環境

  • macOS Ventura 13.5.1(22G90)
  • Google Chrome 116.0.5845.140(Official Build) (arm64)

再現手順

  1. JPG_Test.jpgをアップロードする。
  2. アップロード先https://end2end.tech/cf0964f53d5bからファイルをダウンロードする。

アップロードしたファイルとダウンロードしたファイルのSHA256値は以下の通り (ローカル環境にてshasum -a 256 filenameで計算)

  • アップロードファイル: 45acdb74b195a2cd159eb21603c2bb24699e31e01671c2e0dc9f6ae3876da80f
  • ダウンロードファイル: 95f758bf28d2d48783f268fba853a286f6488c1933bdfc077569b3e3b86069f1
@ActiveTK ActiveTK added the bug Something isn't working label Sep 4, 2023
@ActiveTK
Copy link
Owner

ActiveTK commented Sep 7, 2023

xhrの結果をテキストとして受け取っていたため、arraybufferとして取得することにより修正しました。
(サーバー上の保管における問題ではないため、過去にアップロードされたファイルは全て利用可能です)。
c41b764

@ActiveTK ActiveTK closed this as completed Sep 7, 2023
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

2 participants