create_multipart_file_upload
Create a multipart file upload.
Input fields
byte_size (
BigInt!)
File size in bytes.
content_type (
String!)
File content type.
create_file (
Boolean)
Whether to create a file record for this upload. If false or omitted, no file record will be created.
file_type (
FileType)
The type of file being uploaded. Required when create_file is true.
file_upload_owner (
FileUploadOwnerInput!)
Information required to create an owner of this file.
filename (
String!)
Name to give the file.
Return fields
file_id (
ID!)
ID of the file
owner_sentera_id (
ID)
The Sentera ID of the owner of the file upload
s3_key (
String!)
The s3 key for the file you are uploading
upload_id (
ID!)
ID of the multipart file upload
Examples
Create Multipart File Upload
Create a multipart upload for uploading large files to Sentera's cloud storage.
Try this example in GraphiQLmutation CreateMultipartFileUpload{
create_multipart_file_upload(
byte_size: 480452
content_type: "application/geo+json"
filename: "test.geojson"
file_upload_owner: {
parent_sentera_id: "7hy7bwv_CO_cyscAcme_CV_deve_6e3c36d3f_220308_135409"
owner_type: FEATURE_SET
}
) {
file_id
owner_sentera_id
s3_key
upload_id
}
}
{
"data": {
"create_multipart_file_upload": {
"file_id": "eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBMFpLQVE9PSIsImV4cCI6bnVsbCwicHVyIjoiYmxvYl9pZCJ9fQ==--1cadf0aeac8ac03c730ef549710be2e79accdc6c",
"owner_sentera_id": "w3x63n1_FS_cyscAcme_CV_deve_6e3c36d3f_220308_135411",
"s3_key": "cyscAcmeOrg/fnnb6nz_AS_cyscAcme_CV_deve_7bbde271d_230313_103846/sre9bzg_CO_cyscAcme_CV_deve_7bbde271d_230313_103852/FeatureSets/z5rhe13_FS_cyscAcme_CV_deve_e0a089e79_230313_172119/test.geojson",
"upload_id": "kU_5uPVH_pGOud5ScQlCQs0dX2Q7gu.Pn80EB7M1EiYWhV2SthcHdGFt2ov2Awe2or1g0rUcRMU6.MrxPn4Pw4cS2HIcTnj6AJOoZCmaBZZZ6xv8r8jVCtVdZpUxYG17"
}
}
}