Presign media file upload
Requesting PreSign Url for uploading media file
Last updated
Requesting PreSign Url for uploading media file
Last updated
PUT
https://test-001-node.cloud.nxtfi.org/v2/newfile
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
If the Jwt is successfully verified as being signed by the private key holder, a 200 response is received.
Example response.body :
{
"url": "https://s3.amazonaws.com/nxtfi-bucket-us-east-1",
"fields": {
"key": "blockchain/v2/test-001/_archivetemp/__<scope>/37857bfd052ca152695cb5c0ef870521933b98d4a6dc0a1f8de24b6a28e55b27",
"bucket": "nxtfi-bucket-us-east-1",
"X-Amz-Algorithm": "AWS4-HMAC-SHA256",
"X-Amz-Credential": "ASIA4L4KT2AK3CPJDTUF/20230609/us-east-1/s3/aws4_request",
"X-Amz-Date": "20230609T204216Z",
"X-Amz-Security-Token": "IQoJb3JpZ2luX2VjEE0aCXVzLWVhc3QtMSJHMEUCIQCtADIKD2gusrLoMCf1qYiao73RKcH+AgBjuhwQj+MW1wIgY+T8hL+vYUgyzWrdPW05WJaZWaaCziullcSP2yxbQqkqngMIlv//////////ARAAGgw4NTAxNTczNTkxMjUiDOZBdrwU7/g715U0jiryAnFaRvuLUiiSpu734eZF6i8ya3YMqBUwI2GpFyakpqj3Cg4VrAS6SJ3Y7tcBUigwjFQuM0ZK0YOuLFaRyB13n1YQHP+RPCIYWTmYiCZ3eRHVofQ/iX0uNPAoZileTwRzKzDf2SfVP0DVOr1FVU9N5cd4Aw+rYK64eknGBPXfpaW9TgFxAzmLBJWViQblV669vwyeQmFaRRKWJJVRGrzKDU7UjTvbRJBhGMkEBm7i+eHVEYjEdYWfpndOTg/r+6EVPQnknmRRrK2iRNY58i7eRi9ccmTIUYGDxiTLHsGqlJvzn6KPz8qizcAuc3CukoIJ1Xd0o2Ku/OIaCgimrokzK5W95y2IjzeN91UD2AsbYKu8rYqsjyg0puAMpUwnlu7hU+F5ugJQDUUIdakscjZRNhIprFqa7B8pIm8xRDWnJ2SrOApyCRBDfWmhYfo53QkNn1SjgYS3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139ec8fd4c268cc15323d14b21f97497e0a0e1"
},
"payload": {
"by": "entity",
"fileHash": "de4c62edfd77fbe4c6e2b2f5f34a26e39857530fe4147abfc0c245318e89465e",
"fileSize": 631025,
"iat": 1689693962,
"exp": 1689780362
}
}
If the Jwt is successfully verified as being signed by the private key holder, a 200 response is received.
Example response.body :
{
"url": "https://s3.amazonaws.com/nxtfi-bucket-us-east-1",
"fields": {
"key": "blockchain/v2/test-001/_archivetemp/__b2fi__onboarding/37857bfa052ca152695cb5c0ef870521933b98d4a6dc0a1f8de24b6a28e55b27",
"bucket": "nxtfi-bucket-us-east-1",
"X-Amz-Algorithm": "AWS4-HMAC-SHA256",
"X-Amz-Credential": "ASIA4L4KT2AK3CPJDTUF/20230609/us-east-1/s3/aws4_request",
"X-Amz-Date": "20230609T204216Z",
"X-Amz-Security-Token": "IQoJb3JpZ2luX2VjEE0aCXVzLWVhc3QtMSJHMEUCIQCtADIKD2gusrLoMCf1qYiao73RKcH+AgBjuhwQj+MW1wIgY+T8hL+vYUgyzWrdPW05WJaZWaaCziullcSP2yxbQqkqngMIlv//////////ARAAGgw4NTAxNTczNTkxMjUiDOZBdrwU7/g715U0jiryAnFaRvuLUiiSpu734eZF6i8ya3YMqBUwI2GpFyakpqj3Cg4VrAS6SJ3Y7tcBUigwjFQuM0ZK0YOuLFaRyB13n1YQHP+RPCIYWTmYiCZ3eRHVofQ/iX0uNPAoZileTwRzKzDf2SfVP0DVOr1FVU9N5cd4Aw+rYK64eknGBPXfpaW9TgFxAzmLBJWViQblV669vwyeQmFaRRKWJJVRGrzKDU7UjTvbRJBhGMkEBm7i+eHVEYjEdYWfpndOTg/r+6EVPQnknmRRrK2iRNY58i7eRi9ccmTIUYGDxiTLHsGqlJvzn6KPz8qizcAuc3CukoIJ1Xd0o2Ku/OIaCgimrokzK5W95y2IjzeN91UD2AsbYKu8rYqsjyg0puAMpUwnlu7hU+F5ugJQDUUIdakscjZRNhIprFqa7B8pIm8xRDWnJ2SrOApyCRBD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"c81fc89db78e4f2287efbfa9d1139ec8fd4c268cc15323d14b21f97497e0a0e1"
},
"payload": {
"by": "entity",
"fileHash": "de4c62ed3d77fbe2c6e2b2f5f34a26e39857530fe4147abfc0c245318e89465e",
"fileSize": 631025,
"iat": 1689693962,
"exp": 1689780362
}
}
Content-Type*
String
application/json
jwt *
String
jwt signature