1.1.0 • Published 3 years ago

react-file-manager-ui v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

react-file-manager-ui

React UI component for handling files and folders

Image

Usage:

<FileManager
    getList={getList}
    createDirectory={createDirectory}
    deletePaths={deletePaths}
    openFile={openFile}
    uploadFiles={uploadFiles}
    rename={rename}
    features={['createDirectory', 'uploadFiles', 'deletePaths', 'rename']}
/>

features

features can be enabled or disabled

if features are not defined then all features are enabled

height

height is 100vh by default

getList

getList will receive path and should return promise that would be resolved with next data model:

[
   { name: 'New folder 1', type: 2 },
   { name: 'file.txt', type: 1 }
]

where type 1 is file and type 2 is folder

createDirectory

createDirectory will receive current path and should return promise that would be resolved when directory is created

deletePaths

deletePaths will receive array of paths and should return promise that would be resolved when paths are deleted

rename

rename will receive path and should return promise that would be resolved when it's renamed

uploadFiles

uploadFiles will receive current path and array of files and should return promise that would be resolved when files are uploaded

openFile

openFile will receive path

1.1.0

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago