1.1.0 • Published 3 years ago
metropolinet-s3-uploader v1.1.0
Metropolinet S3 File Uploader
powered by tsdx! https://tsdx.io/
React File Uploader Tool for Metropolinet AWS s3 bucket
Getting Started
npm i metropolinet-s3-uploader
Simple Example
import React from 'react';
import './App.css';
import UploadFileToS3 from 'metropolinet-s3-uploader';
function App() {
return (
<div className="App">
<UploadFileToS3 title="some title" hideTitle={false}
bucketName="YOUR_BUCKET_NAME"
bucketRegion="YOUR_REGION"
config= {accessKeyId: 'YOUR_ACCESS_ID',secretAccessKey: 'YOUR_SECRET_ACCESS_KEY'}/>
</div>
}
export default App;
In the Oven
- Uploading files to s3 folder by type (Image, txt...)
- Uplading files to s3 folder hierarchy like: /{system}/{organization}