Begins a new multipart file upload process.
1curl "https://api.bytescale.com/v2/accounts/{accountId}/uploads" \2     -H "Authorization: Bearer YOUR_API_KEY" \3     -H "Content-Type: application/json" \4     -d @- << EOF5     {6       "metadata": {7         "myCustomField1": true,8         "myCustomField2": {9           "hello": "world"10         },11         "anotherCustomField": 4212       },13       "mime": "text/plain",14       "originalFileName": "example.txt",15       "path": {16         "fileName": "example-{UNIQUE_DIGITS_4}{ORIGINAL_FILE_EXT}",17         "folderPath": "/uploads"18       },19       "protocol": "1.1",20       "size": 43182,21       "tags": [22         "example_tag"23       ]24     }25EOF1{2  "file": {3    "accountId": "YOUR_ACCOUNT_ID",4    "etag": "33a64df551425fcc55e4d42a148795d9f25f89d4",5    "filePath": "/uploads/image.jpg",6    "fileUrl": "https://upcdn.io/A623uY2/raw/uploads/image.jpg",7    "lastModified": 1615680311115,8    "metadata": {9      "myCustomField1": true,10      "myCustomField2": {11        "hello": "world"12      },13      "anotherCustomField": 4214    },15    "mime": "image/jpeg",16    "originalFileName": "example.jpg",17    "size": 43182,18    "tags": [19      "example_tag"20    ]21  },22  "uploadId": "Kd759aLFxttm69kZ",23  "uploadParts": {24    "count": 12,25    "first": {26      "range": {27        "inclusiveEnd": 5242879,28        "inclusiveStart": 029      },30      "uploadId": "Kd759aLFxttm69kZ",31      "uploadPartIndex": 7,32      "uploadUrl": "https://...long-url...x-id=PutObject"33    }34  }35}Your account ID.
This is visible on the settings page:
https://www.bytescale.com/dashboard/settings
Example: "A623uY2"
Type: String
Length: 7
Add one of these Authorization header values to your request:
•Option 1: prefix "Bearer " to your API key. The result is your Authorization header value.
•Option 2: use HTTP basic authorization with apikey as your username and your API key as your password.
For advanced options, please see:
https://www.bytescale.com/docs/auth
Type: String
This endpoints requires a JSON request body.
Type: String
Value: "application/json"
This website uses cookies. By continuing you are consenting to the use of cookies per our Cookie Policy. Our legal policies were last updated August 16 2024.
This website requires a modern web browser -- the latest versions of these browsers are supported: