Browse Source

doc: fix restriction-failed doc

Zeqiu Wu 6 years ago
parent
commit
6dbfb4a647
1 changed files with 2 additions and 2 deletions
  1. 2 2
      website/src/docs/uppy.md

+ 2 - 2
website/src/docs/uppy.md

@@ -643,12 +643,12 @@ Fired when “info” message should be hidden in the UI. See [`info-visible`](#
 
 Fired when [`uppy.cancelAll()`]() is called, all uploads are canceled, files removed and progress is reset.
 
-### `restrictions-violated`
+### `restriction-failed`
 
 Fired when a file violates certain restrictions when added. This event is just providing another choice for those who want to customize the behavior of file upload restrictions.
 
 ```javascript
-uppy.on('restrictions-violated', (file, error) => {
+uppy.on('restriction-failed', (file, error) => {
   // do some customized logic like showing system notice to users
 })
 ```