---
title: "Batch generate pre signed upload url"
method: POST
path: "/storage/batchGeneratePreSignedUploadUrl"
tags: ["Open API/Storage"]
---

# Batch generate pre signed upload url

`POST /storage/batchGeneratePreSignedUploadUrl`

The uploaded file will be temporarily stored, after which it must be moved to the designated space for business operations. Temporary files will be regularly cleaned.

## Headers

- `Authorization` string

## Request body

- object[] — List of meta info of files to be upload
  - `deviceName` string, required — Device name, like camera_image_0
  - `filename` string, required — Filename
  - `size` integer, required — Filesize, in bytes
  - `mimeType` string — Mime
  - `width` integer — Image width, in pixels
  - `height` integer — Image height, in pixels

## Response `200`

Success

- object
  - `code` string, required — Error code; success will be OK
  - `message` string, required — Error message
  - `data` object[], required — Response data; will be null if it is empty
    - `preSignedUrl` string — 文件上传地址 PUT方式
    - `tempFileId` string — 临时文件ID

---

[API](https://skmtc.dev/basic/apis/basicai-cloud-open-plugin-api.md) · [All operations](https://skmtc.dev/basic/apis/basicai-cloud-open-plugin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/basic/basicai-cloud-open-plugin-api/revisions/f6b5a226c6da/schema)
