ndi.cloud.upload.zip_for_upload
ZIP_FOR_UPLOAD - Create and upload zip files in batches to the NDI cloud.
[B, MSG] = ndi.cloud.upload.zip_for_upload(D, DOC_FILE_STRUCT, TOTAL_SIZE, DATASET_ID, 'Verbose', true, 'DebugLog', true)
Inputs:
D - The ndi.database object.
DOC_FILE_STRUCT - A structure array with file information.
TOTAL_SIZE - The total size of all files to be uploaded (in bytes). (Note: This is no longer used for the progress bar).
DATASET_ID - The dataset ID for the upload.
Name-Value Options:
'Verbose' - A logical (true/false) to control whether detailed
information is printed to the console. Defaults to false.
'SizeLimit' - The maximum size of each zip file batch in bytes.
Defaults to 25 MB (25e6).
'DebugLog' - A logical (true/false) to enable logging of zipped files.
Defaults to false.
Outputs:
B - A boolean indicating success (1) or failure (0).
MSG - An error message if the operation failed; otherwise empty.