react-s3-typescript
Version:
A npm package to upload your files into AWS S3 Bucket directly using react
21 lines (20 loc) • 396 B
TypeScript
export interface IConfig {
bucketName: string;
dirName?: string;
region: string;
accessKeyId: string;
secretAccessKey: string;
s3Url?: string;
}
export type UploadResponse = {
bucket: string;
key: string;
location: string;
status: number;
};
export type DeleteResponse = {
ok: boolean;
status: number;
message: string;
fileName: string;
};