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 473796b commit cc4c52aCopy full SHA for cc4c52a
website/src/docs/core.md
@@ -622,7 +622,12 @@ Update the state for a single file. This is mostly useful for plugins that may w
622
`fileID` is the string file ID. `state` is an object that will be merged into the file’s state object.
623
624
```js
625
-uppy.getPlugin('Url').addFile('path/to/remote-file.jpg')
+uppy.getFiles().forEach(file => {
626
+ // Mark all files as uploaded and complete.
627
+ uppy.setFileState(file.id, {
628
+ progress: { uploadComplete: true, uploadStarted: true },
629
+ })
630
+})
631
```
632
633
### `uppy.setMeta(data)`
0 commit comments