Initiate a multipart upload for large files (typically >100MB). This will return presigned URLs for each part.
Each presigned URL is valid for 900 seconds (15 minutes) and can be used multiple times.
The workflow is:
The input should contain:
fileName: the name of the file to be uploadedfileType: the MIME type of the filefileSize: the size of the file in MBpartSizeLimit: (optional) the size limit for each part in MBisSplit: whether the file should be split after upload (optional, default: false)isSplitExcel: whether to split Excel files by worksheets (optional, default: false)callbackURL: the url that will be called after processingocrModel: the OCR model to use (optional)schemaLocking: whether the schema should be locked (optional)directoryId: the directory id where the file should be uploaded (optional)API key for authentication
File name
"large-file.pdf"
File type
"application/pdf"
File size in MB
150.5
Part size limit in MB (optional, default will be calculated)
10
Is split
false
Is split excel - whether to split Excel files by worksheets
false
Callback URL
"https://example.com/callback"
OCR model
Beethoven_ENG_O5.6, Beethoven_ENG_G5.5, Beethoven_ENG_GP25, Beethoven_ENG_GP25.1, Beethoven_ENG_GP25.2, Beethoven_ENG_GP3, Beethoven_CUS_O5.1, Beethoven_CUS_O5.2, Beethoven_CUS_GP25.1, Unified (google-document-ai-ocr-gemini-v10), Beethoven_ZH_O5.9, Beethoven_JP_O5.3, Beethoven_JP_G5.4, Beethoven_TH_O5.1 "Beethoven_ENG_O5.6"
Schema locking
false
Directory Id
"649e2d2d2d2d2d2d2d2d2d2d"
Multipart upload initiated successfully. Use the presigned URLs to upload each part.