浏览代码

doc: Add uppy.removeFile()

Renée Kooi 7 年之前
父节点
当前提交
b51916c575
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      website/src/docs/uppy.md

+ 10 - 0
website/src/docs/uppy.md

@@ -244,6 +244,16 @@ uppy.addFile({
 
 If `uppy.opts.autoProceed === true`, Uppy will begin uploading automatically when files are added.
 
+### `uppy.removeFile(fileID)`
+
+Remove a file from Uppy.
+
+```js
+uppy.removeFile('uppyteamkongjpg1501851828779')
+```
+
+Removing a file that is already being uploaded cancels that upload.
+
 ### `uppy.getFile(fileID)`
 
 Get a specific file object by its ID.