We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68b8079 commit 1c8e935Copy full SHA for 1c8e935
example/src/App.svelte
@@ -29,6 +29,8 @@
29
let eventData = {};
30
let eventRef = {};
31
32
+ let file = new File(['hello world'], 'filename');
33
+
34
let readyToUpload = false;
35
36
function onData(e) {
@@ -204,7 +206,7 @@
204
206
205
207
<h3>UploadTask:</h3>
208
- <UploadTask path={'myfile.txt'} file={new File(['hello world'], 'filename')} let:task let:snapshot let:downloadURL>
209
+ <UploadTask path={'myfile.txt'} {file} let:task let:snapshot let:downloadURL>
210
211
Progress {(snapshot.bytesTransferred / snapshot.totalBytes) * 100} <br>
212
State {snapshot.state}
0 commit comments