feat: allow file-drop to accept multiple files (#1945)

This commit is contained in:
Nolan Lawson 2021-02-15 15:07:13 -08:00 committed by GitHub
parent 6fdbedd594
commit c3d25b88cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -56,7 +56,7 @@
"events-light": "^1.0.5", "events-light": "^1.0.5",
"express": "^4.17.1", "express": "^4.17.1",
"file-api": "^0.10.4", "file-api": "^0.10.4",
"file-drop-element": "0.2.0", "file-drop-element": "^1.0.1",
"file-loader": "^6.1.0", "file-loader": "^6.1.0",
"focus-visible": "^5.1.0", "focus-visible": "^5.1.0",
"form-data": "^3.0.0", "form-data": "^3.0.0",

View File

@ -1,4 +1,4 @@
<file-drop class="file-drop file-drop-realm-{realm}" accept={mediaAccept} ref:fileDrop > <file-drop multiple class="file-drop file-drop-realm-{realm}" accept={mediaAccept} ref:fileDrop >
<div class="file-drop-info"> <div class="file-drop-info">
<div class="file-drop-info-text"> <div class="file-drop-info-text">
<span class="file-drop-info-text-valid">{intl.dropToUpload}</span> <span class="file-drop-info-text-valid">{intl.dropToUpload}</span>

View File

@ -3787,10 +3787,10 @@ file-api@^0.10.4:
mime ">= 1.2.11" mime ">= 1.2.11"
remedial ">= 1.0.7" remedial ">= 1.0.7"
file-drop-element@0.2.0: file-drop-element@^1.0.1:
version "0.2.0" version "1.0.1"
resolved "https://registry.yarnpkg.com/file-drop-element/-/file-drop-element-0.2.0.tgz#c9214515b9d6b11f32c7fcee299f3a671939409e" resolved "https://registry.yarnpkg.com/file-drop-element/-/file-drop-element-1.0.1.tgz#699d9aa47ef314a11f84fb92ef489cc0ce487aa1"
integrity sha512-BGDdaJ4U2Cz0qhv6YGLnuhVtKcN8fp7F/4dS7lGSL1Fbe8m4cbGk+8awwHW0xcFqutMojxGchMVuWYQpEpP/Qg== integrity sha512-na2cwntTVgMsR+BZ2YBr/XQk941DKDw2LJKbV7g6TRdGBQ3rx8V53oEviG8zPWoBOySwK9w/SlZ/gb/F/48I8A==
file-entry-cache@^5.0.1: file-entry-cache@^5.0.1:
version "5.0.1" version "5.0.1"