angular-aws-s3
Version:
Open Source Module to Upload your Media and files into AWS S3 Bucket directly from Front-end
9 lines (8 loc) • 401 B
TypeScript
import { IConfig, DeleteResponse, UploadResponse } from "./types";
declare class AWSS3UploadClient {
private readonly config;
constructor(config?: IConfig);
uploadFile(file: File, contentType: string, presignedURL?: string, newFileName?: string, acl?: string): Promise<UploadResponse>;
deleteFile(fileName: string): Promise<DeleteResponse>;
}
export default AWSS3UploadClient;