Endpoints
Upload Multiple Files
Endpoints
Upload Multiple Files
POST
/
media
/
upload
/
multiple
Copy
curl --request POST \
--url http://stash.taficloud.com/media/upload/multiple \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form folderId=1
Copy
{
"statusCode": 200,
"message": "Success",
"data": {
"media": [
{
"id": 32,
"organizationId": 1,
"name": "20200630_091003",
"url": "http://localhost:8087/media/download?media=magnavisio/20200630_091003-7f09285e6911e683e325351129c08d6e.jpg",
"key": "magnavisio/20200630_091003-7f09285e6911e683e325351129c08d6e.jpg",
"bucket": "cloudloom-bucket",
"mimetype": "image/jpeg",
"size": 1306.5908203125,
"metaData": {
"ipAddress": "::ffff:127.0.0.1",
"userAgent": "PostmanRuntime/7.39.0"
},
"updatedAt": "2024-06-08T15:41:46.068Z",
"createdAt": "2024-06-08T15:41:46.068Z"
},
{
"id": 31,
"organizationId": 1,
"name": "mysignature",
"url": "http://localhost:8087/media/download?media=magnavisio/mysignature-9c7697c139feefac4517839ac4e2da40.png",
"key": "magnavisio/mysignature-9c7697c139feefac4517839ac4e2da40.png",
"bucket": "cloudloom-bucket",
"mimetype": "image/png",
"size": 9.3779296875,
"metaData": {
"ipAddress": "::ffff:127.0.0.1",
"userAgent": "PostmanRuntime/7.39.0"
},
"updatedAt": "2024-06-08T15:41:44.864Z",
"createdAt": "2024-06-08T15:41:44.864Z"
},
{
"id": 33,
"organizationId": 1,
"name": "passport",
"url": "http://localhost:8087/media/download?media=magnavisio/passport-8ab1b66096aa4c0adf33af810bb6f911b.jpg",
"key": "magnavisio/passport-8ab1b66096aa4c0adf33af810bb6f911b.jpg",
"bucket": "cloudloom-bucket",
"mimetype": "image/jpeg",
"size": 781.34765625,
"metaData": {
"ipAddress": "::ffff:127.0.0.1",
"userAgent": "PostmanRuntime/7.39.0"
},
"updatedAt": "2024-06-08T15:41:46.694Z",
"createdAt": "2024-06-08T15:41:46.694Z"
}
]
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Query Parameters
Response
201 - application/json
Copy
curl --request POST \
--url http://stash.taficloud.com/media/upload/multiple \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form folderId=1
Copy
{
"statusCode": 200,
"message": "Success",
"data": {
"media": [
{
"id": 32,
"organizationId": 1,
"name": "20200630_091003",
"url": "http://localhost:8087/media/download?media=magnavisio/20200630_091003-7f09285e6911e683e325351129c08d6e.jpg",
"key": "magnavisio/20200630_091003-7f09285e6911e683e325351129c08d6e.jpg",
"bucket": "cloudloom-bucket",
"mimetype": "image/jpeg",
"size": 1306.5908203125,
"metaData": {
"ipAddress": "::ffff:127.0.0.1",
"userAgent": "PostmanRuntime/7.39.0"
},
"updatedAt": "2024-06-08T15:41:46.068Z",
"createdAt": "2024-06-08T15:41:46.068Z"
},
{
"id": 31,
"organizationId": 1,
"name": "mysignature",
"url": "http://localhost:8087/media/download?media=magnavisio/mysignature-9c7697c139feefac4517839ac4e2da40.png",
"key": "magnavisio/mysignature-9c7697c139feefac4517839ac4e2da40.png",
"bucket": "cloudloom-bucket",
"mimetype": "image/png",
"size": 9.3779296875,
"metaData": {
"ipAddress": "::ffff:127.0.0.1",
"userAgent": "PostmanRuntime/7.39.0"
},
"updatedAt": "2024-06-08T15:41:44.864Z",
"createdAt": "2024-06-08T15:41:44.864Z"
},
{
"id": 33,
"organizationId": 1,
"name": "passport",
"url": "http://localhost:8087/media/download?media=magnavisio/passport-8ab1b66096aa4c0adf33af810bb6f911b.jpg",
"key": "magnavisio/passport-8ab1b66096aa4c0adf33af810bb6f911b.jpg",
"bucket": "cloudloom-bucket",
"mimetype": "image/jpeg",
"size": 781.34765625,
"metaData": {
"ipAddress": "::ffff:127.0.0.1",
"userAgent": "PostmanRuntime/7.39.0"
},
"updatedAt": "2024-06-08T15:41:46.694Z",
"createdAt": "2024-06-08T15:41:46.694Z"
}
]
}
}