This repository was archived by the owner on May 5, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
samples/Sample.Core/Pages Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ public class FileListEntryImpl : IFileListEntry
2323
2424 public string Type { get ; set ; }
2525
26+ public string RelativePath { get ; set ; }
27+
2628 public Stream Data
2729 {
2830 get
Original file line number Diff line number Diff line change 1212 lastModified : new Date ( file . lastModified ) . toISOString ( ) ,
1313 name : file . name ,
1414 size : file . size ,
15- type : file . type
15+ type : file . type ,
16+ relativePath : file . webkitRelativePath
1617 } ;
1718 elem . _blazorFilesById [ result . id ] = result ;
1819
Original file line number Diff line number Diff line change 44
55<p >A multi-file picker that displays information about selection and shows progress as each one is loaded.</p >
66
7- <InputFile multiple OnChange =" HandleSelection" />
7+ <label for =" uploadFiles" >Select File(s)</label >
8+ <InputFile id =" uploadFiles" multiple OnChange =" HandleSelection" />
9+
10+ <label for =" uploadFolder" >Select Folder</label >
11+ <InputFile id =" uploadFolder" multiple webkitdirectory OnChange =" HandleSelection" />
812
913@if (selectedFiles != null )
1014{
You can’t perform that action at this time.
0 commit comments