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: src/Adapters/Files/FilesAdapter.js
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -31,12 +31,14 @@ export class FilesAdapter {
31
31
* @discussion the contentType can be undefined if the controller was not able to determine it
32
32
* @param {object} options - (Optional) options to be passed to file adapter (S3 File Adapter Only)
33
33
* - tags: object containing key value pairs that will be stored with file
34
-
* - metadata: object containing key value pairs that will be sotred with file (https://docs.aws.amazon.com/AmazonS3/latest/user-guide/add-object-metadata.html)
34
+
* - metadata: object containing key value pairs that will be stored with file (https://docs.aws.amazon.com/AmazonS3/latest/user-guide/add-object-metadata.html)
35
35
* @discussion options are not supported by all file adapters. Check the your adapter's documentation for compatibility
36
+
* @param {Config} config - (Optional) server configuration
37
+
* @discussion config may be passed to adapter to allow for more complex configuration and internal call of getFileLocation (if needed). This argument is not supported by all file adapters. Check the your adapter's documentation for compatibility
36
38
*
37
-
* @return {Promise} a promise that should fail if the storage didn't succeed
39
+
* @return {Promise<{url?: string, name?: string, location?: string}>|Promise<undefined>} Either a plain promise that should fail if storage didn't succeed, or a promise resolving to an object containing url and/or an updated filename and/or location (if relevant)
0 commit comments