Skip to content

Commit

Permalink
Fix markdown velidation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tarjei committed May 14, 2024
1 parent fe4e07c commit 312ec61
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions docs/events/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ The following is a list of events you can listen to:
| `vich_uploader.upload_error` | `Events::UPLOAD_ERROR` | If file upload failed. |
| `vich_uploader.remove_error` | `Events::REMOVE_ERROR` | If file remove failed. |


The `vich_uploader.pre_remove` event is cancelable, that means that the actual remove request will not take place,
and you have to take action.

Expand Down Expand Up @@ -56,9 +55,9 @@ services:
## Error events
The UPLOAD_ERROR event happens before an exception is thrown further up in the hierarchy. An error when removing a file
will emit the event but unless you handle it somehow the error will be swallowed and the operation will preceede as if
the file has been removed.
The `UPLOAD_ERROR` event happens before an exception is thrown further up in the hierarchy. An error
when removing a file will emit the event but unless you handle it somehow the error will be swallowed and
the operation will preceede as if the file has been removed.

You can use the event to trow an error when the error occurs:

Expand Down Expand Up @@ -90,7 +89,4 @@ class RemoveErrorEventListener implements EventSubscriberInterface
}
```



[Return to the index](../index.md)

0 comments on commit 312ec61

Please sign in to comment.