1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

はじめに

GASのWebアプリ上にGoogle Driveの画像を表示する方法
前提としてWEBアプリを作成しておく。

imgタグを使って表示する

index.html
<img src="https://lh3.googleusercontent.com/d/{ここにFile IDを入力する}" alt="img" width="40" height="40">

image.png

ファイルIDの調べ方

Google Driveのファイル上で右クリック→共有→リンクをコピー

image.png

image.png

以下のようなリンクが取得できる。{}内の文字列がファイルID

https://drive.google.com/file/d/{ここの文字列がファイルID}/view?usp=drive_link

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?