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
+19-13Lines changed: 19 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -873,7 +873,7 @@ getDatasetFiles
873
873
These use cases are designed to facilitate the uploading of files to a remote S3 storage and subsequently adding them to a dataset. This process involves two main steps / use cases:
874
874
875
875
1. Uploading a file to remote S3 storage and obtaining a storage identifier.
876
-
2. Adding the uploaded file to the dataset using the obtained storage identifier.
876
+
2. Adding one or more uploaded files to the dataset using the obtained storage identifiers.
877
877
878
878
This use case flow is entirely based on the Direct Upload API as described in the Dataverse documentation: https://guides.dataverse.org/en/latest/developers/s3-direct-upload-api.html
879
879
@@ -910,35 +910,41 @@ The `progress` parameter represents a callback function that allows the caller t
910
910
911
911
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.
912
912
913
-
##### Add Uploaded File to the Dataset
913
+
##### Add Uploaded Files to the Dataset
914
914
915
-
This use case involves adding a file that has been previously uploaded to remote storage to the dataset.
915
+
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.
938
946
939
-
The `file` parameter is a subclass of Blob (Binary Large Object) that represents a file.
940
-
941
-
The `storageId` parameter represents the storage identifier obtained after a successful call to the UploadFile use case.
947
+
The `uploadedFileDTOs` parameter is an array of [UploadedFileDTO](../src/files/domain/dtos/UploadedFileDTO.ts) and includes properties related to the uploaded files. Some of these properties should be calculated from the uploaded File Blob objects and the resulting storage identifiers from the Upload File use case.
0 commit comments