You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/useCases.md
+17-17
Original file line number
Diff line number
Diff line change
@@ -909,41 +909,41 @@ The `progress` parameter represents a callback function that allows the caller t
909
909
910
910
The `abortController` is a built-in mechanism in modern web browsers that allows the cancellation of asynchronous operations. It works in conjunction with an associated AbortSignal, which will be passed to the file uploading API calls to monitor whether the operation should be aborted, if the caller decides to cancel the operation midway.
911
911
912
-
##### Add Uploaded File to the Dataset
912
+
##### Add Uploaded Files to the Dataset
913
913
914
-
This use case involves adding a file that has been previously uploaded to remote storage to the dataset.
914
+
This use case involves adding files that have been previously uploaded to remote storage to the dataset.
The `datasetId` parameter can be a string, for persistent identifiers, or a number, for numeric identifiers.
943
945
944
-
The `uploadedFileDTO` parameter is an instance of [UploadedFileDTO](../src/files/domain/dtos/UploadedFileDTO.ts) and includes properties related to the uploaded file. These properties should be calculated from the File Blob object previously sent through the upload file use case.
945
-
946
-
The `storageId` parameter represents the storage identifier obtained after a successful call to the UploadFile use case.
946
+
The `uploadedFileDTOs` parameter is an array of [UploadedFileDTO](../src/files/domain/dtos/UploadedFileDTO.ts) and includes properties related to the uploaded files. These properties should be calculated from the uploaded File Blob objects and the resulting storage identifiers from the Upload File use case.
* Note: This use case can be used independently of the UploadFile use case, e.g., supporting scenarios in which the file already exists in S3 or has been uploaded via some out-of-band method.
18
+
* Note: This use case can be used independently of the UploadFile use case, e.g., supporting scenarios in which the files already exist in S3 or have been uploaded via some out-of-band method.
19
19
*
20
20
* @param {number | string} [datasetId] - The dataset identifier, which can be a string (for persistent identifiers) or a number (for numeric identifiers).
21
-
* @param {UploadedFileDTO} [uploadedFileDTO] - A file DTO associated with the uploaded file.
21
+
* @param {UploadedFileDTO[]} [uploadedFileDTOs] - File DTOs associated with the uploaded files.
22
22
* @returns {Promise<void>} A promise that resolves when the file has been successfully added to the dataset.
23
23
* @throws {DirectUploadClientError} - If there are errors while performing the operation.
0 commit comments