Skip to content

Commit a9381bc

Browse files
committed
Add optional location element too
1 parent 1df8f1a commit a9381bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Adapters/Files/FilesAdapter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class FilesAdapter {
3535
* - 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)
3636
* @discussion options are not supported by all file adapters. Check the your adapter's documentation for compatibility
3737
*
38-
* @return {Promise<any>|Promise<{url?: string, name?: string}>} 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
38+
* @return {Promise<any>|Promise<{url?: string, name?: string, location?: string}>} 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)
3939
*/
4040
createFile(filename: string, data, contentType: string, options: Object, config: Config): Promise {}
4141

0 commit comments

Comments
 (0)