1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[Tips]OneDriveブラウザ画面上で貼り付け操作を行うとクリップボードからデータを直接アップロードできる

Last updated at Posted at 2020-01-25

掲題のTipsの手順のメモです。

手順

OneDriveのブラウザ画面です。
image.png

この画面にてWindowsなら[Ctrl + v]、Macなら[command + v]により貼り付け操作を行うと、クリップボードからデータをOneDrive上に直接アップロードすることができます。

  • クリップボードにテキストデータがある場合

貼り付け操作により[clipboard.txt]というテキストファイルがアップロードされます。
image.png

ファイルを開くとクリップボード上のテキストデータが書き込まれています。
image.png

  • クリップボードに画像データがある場合

貼り付け操作により[image.png]という画像ファイルがアップロードされます。
image.png

ファイルを開くとクリップボード上の画像データが書き込まれています。
image.png

補足

貼付け操作時にすでに貼り付け先フォルダ内に同名のファイルがある場合は、clipboard.txt clipboard 1.txt clipboard 2.txtや、 image.png image 1.png image 2.pngのようにファイル名はナンバリングされます。(数字の前にスペースがつきます)

バグ?

[clipboard.txt]ではないファイル名のテキストファイルがすでに作成されている。
image.png

この状態でクリップボードにテキストデータがある状態で貼り付け操作を行うと、新しいファイルは[clipboard.txt]ではなくすでにあるファイルと同名のファイルとして作成されてしまうように見える。(期待していない動作)
image.png

しかし、ブラウザ画面をリフレッシュすると、新しいファイルは[clipboard.txt]として作成されている。
image.png

一方、[clipboard.txt]のファイル名のファイルがすでに作成されている状態でまた同貼り付け操作を行うと、新しいファイルは[clipboard 1.txt]として作成される。(期待動作)
image.png

おわりに

OneDriveを利用する人にとっては周知の操作なのかもしれませんが、わたしは見つけたときにびっくりしました。

以上

1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?