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
The `datasetId` parameter can be a string, for persistent identifiers, or a number, for numeric identifiers.
937
943
938
-
The `file` parameter is a subclass of Blob (Binary Large Object) that represents a file.
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.
939
945
940
946
The `storageId` parameter represents the storage identifier obtained after a successful call to the UploadFile use case.
@@ -17,12 +18,11 @@ export class AddUploadedFileToDataset implements UseCase<void> {
17
18
* 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
19
*
19
20
* @param {number | string} [datasetId] - The dataset identifier, which can be a string (for persistent identifiers) or a number (for numeric identifiers).
20
-
* @param {File} [file] - The file object that has been uploaded.
21
-
* @param {string} [storageId] - The storage identifier associated with the uploaded file.
21
+
* @param {UploadedFileDTO} [uploadedFileDTO] - A file DTO associated with the uploaded file.
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