mirror of
https://github.com/minio/minio.git
synced 2025-11-07 04:42:56 -05:00
Multi files selection and upload from Browser (#5711)
This commit is contained in:
committed by
Dee Koder
parent
1e50951a4a
commit
1a71004c91
@@ -33,7 +33,11 @@ export const MainActions = ({
|
||||
)
|
||||
const onFileUpload = e => {
|
||||
e.preventDefault()
|
||||
uploadFile(e.target.files[0])
|
||||
let files = e.target.files
|
||||
let filesToUploadCount = files.length
|
||||
for (let i = 0; i < filesToUploadCount; i++) {
|
||||
uploadFile(files.item(i))
|
||||
}
|
||||
e.target.value = null
|
||||
}
|
||||
|
||||
@@ -55,6 +59,7 @@ export const MainActions = ({
|
||||
onChange={onFileUpload}
|
||||
style={{ display: "none" }}
|
||||
id="file-input"
|
||||
multiple={true}
|
||||
/>
|
||||
<label htmlFor="file-input">
|
||||
{" "}
|
||||
|
||||
Reference in New Issue
Block a user