2.2.1 • Published 10 months ago

oms-ui-uploader v2.2.1

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

OMS-UI-UPLOADER

MultiFile Uploader

Installation

Install oms-ui-uploader with npm

  npm install oms-ui-uploader

Install oms-ui-uploader with yarn

  yarn add oms-ui-uploader

Usage/Examples

import ...
import { GeneralUploader } from "oms-ui-uploader";
import { instance } from "@services/axios";

function App() {

    const [initialFiles,setInitialFiles]=useState([{id: "123",name: "asd",hash: "asd",mimetype: "txt",size: 123,},])

  return (
      <GeneralUploader
          axios={axiosInstance}
          uploadUrl="https://airtour-media-server-stage.c3.darkube.app/api/GroupMedia"
          getUrl="https://airtour-media-server-stage.c3.darkube.app/api/GroupMedia"
          initialFiles={initFiles}
          customValidatorMimeType={[
            "image/jpeg",
            "image/png",
            "application/pdf",
          ]}
          // readOnly
          onNotify={(type, message, file?) =>
            notificationHandler(type, message, file)
          }
        />
      )
}

Provider Props

NameDescription
axiosget an instance of axios
uploadUrlstring
getUrlstring
initialFilesget an array of files
maxNumberOfFilesnumber => config accepting max number of file
maxFileSizeKBnumber => config max file size in kb
readOnlyboolean => for viewing initial files only
classNamestring
acceptableFiles{"image/jpeg" : ".jpeg","image/*" : ".png"}
customValidatorMim."image/jpeg","image/png","application/pdf",
onNotify(type, message,value?) =>{}
singleFileModeboolean => prevent opening dialoge of file exi

Features

  • Upload multiple files
  • Choose to config for uploading a single file
  • View mode only
  • Download file
  • Delete file
  • Config max number of files
  • Config acceptable max file size
  • Passing type, message and file for notification

Screenshots

App Screenshot

2.2.1

10 months ago

2.1.11

10 months ago

2.1.2

10 months ago

2.1.1

10 months ago

2.1.4

10 months ago

2.1.3

10 months ago

2.1.6

10 months ago

2.1.5

10 months ago

2.1.8

10 months ago

2.1.7

10 months ago

2.0.3

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.6

1 year ago

1.2.0

1 year ago

1.2.6

1 year ago

1.2.5

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

2.0.1

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.1

2 years ago

1.0.2

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

0.7.9

2 years ago

1.0.0

2 years ago

0.7.6

2 years ago

0.9.3

2 years ago

0.7.5

2 years ago

0.9.6

2 years ago

0.7.8

2 years ago

0.9.5

2 years ago

0.7.7

2 years ago

1.1.3

2 years ago

1.0.4

2 years ago

1.1.2

2 years ago

1.0.3

2 years ago

0.9.0

2 years ago

0.8.1

2 years ago

0.8.0

2 years ago

0.9.2

2 years ago

0.8.3

2 years ago

0.7.4

2 years ago

0.9.1

2 years ago

0.8.2

2 years ago

0.7.3

2 years ago

0.7.2

2 years ago

0.7.0

2 years ago

0.6.9

2 years ago

0.6.8

2 years ago

0.6.7

2 years ago

0.6.6

2 years ago

0.6.5

2 years ago

0.6.4

2 years ago

0.6.2

2 years ago

0.6.1

2 years ago

0.6.0

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.1.0

2 years ago