70 |
82 |
83 |
84 |
Exemple d'upload de document
85 | handleFilesSelect(files)}
86 | className="md:mt-10"
87 | isMultiple={true}
88 | accepts={["image/png", "image/jpeg"]}
89 | formatList="PNG, JPG, WebP, SVG, PDF"
90 | percentages={Percentages}
91 | />
92 |
93 |
94 | {FilesToUpload.length > 0 &&
95 |
96 |
99 |
}
100 |
101 |
102 | )
103 | }
--------------------------------------------------------------------------------
/src/components/file-picker/FileItem.tsx:
--------------------------------------------------------------------------------
1 | import { Progress } from "@mantine/core";
2 | import React from "react";
3 |
4 | const FileItem = ({ file, uploadPercent, onFileDelete }: { file: any, uploadPercent?: number, onFileDelete: () => void }) => {
5 |
6 | return (
7 |