Skip to content

Commit 929578d

Browse files
committed
docs(readme): hint to where to get the file sources
1 parent 04456a0 commit 929578d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

readme.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ source: [./example](https://github.com/cypsela/browser-source/tree/master/exampl
1616

1717
Api docs: [cypsela.github.io/browser-source](https://cypsela.github.io/browser-source)
1818

19+
Instances of these data types are available from [\<input />](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input) elements, [drag-and-drop events](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/drop_event), and window methods like [showOpenFilePicker](https://developer.mozilla.org/en-US/docs/Web/API/Window/showOpenFilePicker).
20+
1921
### [FileList](https://developer.mozilla.org/docs/Web/API/FileList) Source
2022

2123
```ts
@@ -56,7 +58,7 @@ import { unixfs } from '@helia/unixfs'
5658
const helia = await createHelia()
5759
const fs = unixfs(helia)
5860

59-
const handle: FileSystemHandle = /* Get from drag-and-drop events */;
61+
const handle: FileSystemHandle = /* Get from drag-and-drop events and window.showOpenFilePicker */;
6062

6163
for await (const _ of fs.addAll(fsHandleSource(handle))) {}
6264
```

0 commit comments

Comments
 (0)