This library enables drag-and-drop file upload along with displaying file details.
To install the uploadfile-library
, you can use npm or yarn:
npm install uploadfile-library
npm i uploadfile-library
yarn add uploadfile-library
Import the FileUpload component into your React application: import React from "react"; import { FileUpload } from 'uploadfile-library';
The FileUpload component allows drag-and-drop file uploads, click and displays the uploaded file details.
Props styles: (Object) A style object that can be passed to customize the appearance of the component.
The FileUpload component accepts multiple functionalities:
Drag-and-drop file upload functionality. Displaying file name, size, extension, and last modified date. Removing a file from the uploaded files list.
The uploadfile-library relies on the following dependencies:
@babel/cli, @babel/core, @babel/preset-env, @babel/preset-react: Babel dependencies for transpiling. babel-loader: Webpack loader for Babel. css-loader, style-loader: Loaders for handling CSS files. react: React library.