0
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 1 year has passed since last update.

cURLを利用して、Movable TypeのData API経由でファイルをアップロードする

0
Last updated at Posted at 2019-12-24

以下の方法で、cURLを利用してMovableTypeへファイルをアップロードすることができます。

curl -X POST \
https://<サイトのURL>/mt/mt-data-api.cgi/v4/assets/upload \
-H "X-MT-Authorization:MTAuth accessToken=<アクセストークン>" \
-F site_id=<サイトID> \
-F path=<アップロード先のパス> \
-F "file=@<アップロードするファイルのパス>"
0
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
0
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?