url: 取得したURL
method: PUT
header: Content-Type: MIMEタイプ
body: ファイルバイナリ
とし、ファイルアップロードを実行する。image_urls
などで使用する。POST /upload/public
upload:public:store
なし
10 rps
key | type | 説明 | 制約など |
---|---|---|---|
mime_type | string | MIMEタイプ | - |
POST /upload/public
{
"mime_type": "image/jpeg"
}
{
"file_key": "PdoJcUm1wtopvpX5goCSB36GR45FGuRJCrQAsvky.jpg",
"url": "https://...",
"mime_type": "image/jpeg"
}
key | type | 説明 |
---|---|---|
file_key | string | ファイルキー (使用しない) |
url | string | アップロード先URL |
mime_type | string | MIMEタイプ |
url: 取得したURL
method: PUT
header: Content-Type: MIMEタイプ
body: ファイルバイナリ
とし、ファイルアップロードを実行する。POST /upload/private
upload:private:store
なし
10 rps
key | type | 説明 | 制約など |
---|---|---|---|
mime_type | string | MIMEタイプ | - |
POST /upload/private
{
"mime_type": "image/jpeg"
}
{
"file_key": "PdoJcUm1wtopvpX5goCSB36GR45FGuRJCrQAsvky.jpg",
"url": "https://...",
"mime_type": "image/jpeg"
}
key | type | 説明 |
---|---|---|
file_key | string | ファイルキー |
url | string | アップロード先URL |
mime_type | string | MIMEタイプ |