LoginSignup

This article is a Private article. Only a writer and users who know the URL can access it.
Please change open range to public in publish setting if you want to share this article with other users.

More than 3 years have passed since last update.

ブラウザ上からJavaScriptでファイルを読み取ってPOSTする(ドラッグ&ドロップ対応)

Last updated at Posted at 2019-11-25

実装

参考サイト参照。(後で自分でちゃんと理解して実装したいけどとりあえず。。

e.target.result の中にbase64でエンコードされたファイルの情報が格納されている。
ので、POSTでそのまま送信すれば読み取った内容を送信できる。

参考

0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up