UNPKG

@aws-amplify/storage

Version:

Storage category of aws-amplify

1 lines 970 B
{"version":3,"file":"uploadData.mjs","sources":["../../../../../src/providers/s3/apis/uploadData.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { defaultStorage } from '@aws-amplify/core';\nimport { uploadData as uploadDataInternal } from './internal/uploadData';\nexport function uploadData(input) {\n return uploadDataInternal({\n ...input,\n options: {\n ...input?.options,\n // This option enables caching in-progress multipart uploads.\n // It's ONLY needed for client-side API.\n resumableUploadsCache: defaultStorage,\n },\n });\n}\n"],"names":["uploadDataInternal"],"mappings":";;;AAAA;AACA;AAGO,SAAS,UAAU,CAAC,KAAK,EAAE;AAClC,IAAI,OAAOA,YAAkB,CAAC;AAC9B,QAAQ,GAAG,KAAK;AAChB,QAAQ,OAAO,EAAE;AACjB,YAAY,GAAG,KAAK,EAAE,OAAO;AAC7B;AACA;AACA,YAAY,qBAAqB,EAAE,cAAc;AACjD,SAAS;AACT,KAAK,CAAC;AACN;;;;"}