@aws-amplify/storage
Version:
Storage category of aws-amplify
17 lines (15 loc) • 688 B
JavaScript
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
Object.defineProperty(exports, "__esModule", { value: true });
exports.constructContentDisposition = void 0;
const constructContentDisposition = (contentDisposition) => {
if (!contentDisposition)
return undefined;
if (typeof contentDisposition === 'string')
return contentDisposition;
const { type, filename } = contentDisposition;
return filename !== undefined ? `${type}; filename="${filename}"` : type;
};
exports.constructContentDisposition = constructContentDisposition;
//# sourceMappingURL=constructContentDisposition.js.map
;