UNPKG

@aws-amplify/storage

Version:

Storage category of aws-amplify

16 lines (13 loc) 770 B
import { getAmplifyServerContext } from '@aws-amplify/core/internals/adapter-core'; import { uploadData as uploadData$1 } from '../internal/uploadData/index.mjs'; // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 function uploadData(contextSpec, 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(getAmplifyServerContext(contextSpec).amplify, input); } export { uploadData }; //# sourceMappingURL=uploadData.mjs.map