Skip to content

Commit fbab973

Browse files
committed
readme: patch grammar and links
1 parent 685bbb4 commit fbab973

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,18 @@ Method | Description
104104
---------------|--------------------------
105105
`handle` | Handle the given request
106106

107-
"Handle" is quite vague but there is a reason for that. This library tries to provide more functionality then just
107+
"Handle" is quite vague but there is a reason for that. This library tries to provide more functionality than just
108108
saving the uploaded chunks. It is also adds functionality for resumable uploads which depending on the client side
109-
library can be differ very much. Also, when possible the library gives the opportunity to download the uploaded file.
109+
library can differ very much. Also, when possible the library gives the opportunity to download the uploaded file.
110110

111111
### Events
112112

113-
Once a file upload is finished a `\CodingSocks\UploadHandler\Event\FileUploaded` is triggered. This event contains
113+
Once a file upload finished a `\CodingSocks\UploadHandler\Event\FileUploaded` is triggered. This event contains
114114
the disk and the path of the uploaded file.
115-
[Registering Events & Listeners from Laravel](https://laravel.com/docs/5.8/events#registering-events-and-listeners)
115+
116+
- [Laravel 7.x - Defining Listeners](https://laravel.com/docs/6.x/events#defining-listeners)
117+
- [Laravel 7.x - Defining Listeners](https://laravel.com/docs/7.x/events#defining-listeners)
118+
- [Laravel 8.x - Defining Listeners](https://laravel.com/docs/8.x/events#defining-listeners)
116119

117120
You can also add a `Closure` as the second parameter of the `handle` method to add an inline listener. The listener
118121
is called with the disk and the path of the uploaded file.
@@ -125,7 +128,7 @@ $handler->handle($request, function ($disk, $path) {
125128

126129
### Changing the driver
127130

128-
You can change the default driver by setting a `UPLOAD_DRIVER` environment variable or publishing the
131+
You can change the default driver by setting an `UPLOAD_DRIVER` environment variable or publishing the
129132
config file and changing it directly.
130133

131134
### Adding your own drivers
@@ -139,7 +142,7 @@ app()->make(UploadManager::class)->extend('my_driver', function () {
139142
});
140143
```
141144

142-
If you are adding a driver you need to extend the `\CodingSocks\UploadHandler\Driver\UploadDriver` abstract class, for
145+
If you are adding a driver you need to extend the `\CodingSocks\UploadHandler\Driver\BaseHandler` abstract class, for
143146
which you can use the shipped drivers (e.g. `\CodingSocks\UploadHandler\Driver\BlueimpUploadDriver`) as an example as to
144147
how.
145148

0 commit comments

Comments
 (0)