UNPKG

@aws-amplify/storage

Version:

Storage category of aws-amplify

21 lines (18 loc) 820 B
import { readFile } from '../utils/readFile.mjs'; import { toBase64 } from '../utils/toBase64.mjs'; import { uploadData as uploadData$1 } from '../../providers/s3/apis/internal/uploadData/index.mjs'; // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 function uploadData(ctx, input) { // The internal uploadData returns an UploadTask which has pause/resume. On // the server path we intentionally hide pause/resume from the type because // they are not supported across isolated server requests. The runtime // object still exposes them as no-ops (delegated to createUploadTask). return uploadData$1({ amplify: ctx, readFile, toBase64, }, input); } export { uploadData }; //# sourceMappingURL=uploadData.mjs.map