@@ -17,9 +17,10 @@ Easy to use service for chunked upload with several js providers on top of Larav
1717 * [ Route] ( #route )
1818* [ Providers/Handlers] ( #providers-handlers )
1919* [ Changelog] ( #changelog )
20- * [ Contribution] ( #contribution )
20+ * [ Contribution or overriding] ( #contribution-or-overriding )
21+ * [ Suggested frontend libs] ( #suggested-frontend-libs )
2122
22- ## Instalation
23+ ## Installation
2324
2425** Install via composer**
2526
@@ -247,7 +248,7 @@ When using uploader for the cross domain request you must setup the `chunk.name.
247248Then setup your laravel [ Setup guide] ( https://github.com/barryvdh/laravel-cors )
248249
249250## Providers/Handlers
250- Use ` AbstractHandler ` for type hint or use a specific handler to se aditional methods.
251+ Use ` AbstractHandler ` for type hint or use a specific handler to se additional methods.
251252
252253### ContentRangeUploadHandler
253254
@@ -313,40 +314,19 @@ The cloud drive is not supported becouse of the chunked write (probably could be
313314- [ ] add an example project
314315- [ ] add support to different drive than a local drive
315316
316- ## Contribution
317- Are welcome. To add a new provider, just add a new Handler (which extends AbstractHandler), implement the chunk
318- upload and progress
319-
320- ### Handler class
321- The basic handler ` AbstractHandler ` allows to implement own detection of the chunk mode and file naming. Stored in the Handler namespace but you can
322- store your handler at any namespace (you need to pass the class to the ` FileReceiver ` as a parameter)
323-
324- #### You must implement:
325-
326- - ` getChunkFileName() ` - Returns the chunk file name for a storing the tmp file
327- - ` isFirstChunk() ` - Checks if the request has first chunk
328- - ` isLastChunk() ` - Checks if the current request has the last chunk
329- - ` isChunkedUpload() ` - Checks if the current request is chunked upload
330- - ` getPercentageDone() ` - Calculates the current uploaded percentage
331-
332- #### Automatic detection
333- To enable your own detection, just overide the ` canBeUsedForRequest ` method
334-
335- ``` php
336- public static function canBeUsedForRequest(Request $request)
337- {
338- return true;
339- }
340- ```
341-
342- ##### Fork
343- Edit the ` HandlerFactory ` and add your handler to the ` $handlers ` array
344-
345- ##### At runtime or without forking
346- Call the ` HandlerFactory::register() ` to register your own Handler
317+ ## Contribution or overriding
318+ See [ CONTRIBUTING.md] ( CONTRIBUTING.md ) for how to contribute changes. All contributions are welcome.
347319
348320# Suggested frontend libs
349321
350322* https://github.com/lemonCMS/react-plupload
351323* https://github.com/moxiecode/plupload
352324* https://github.com/blueimp/jQuery-File-Upload
325+
326+ ## Copyright and License
327+
328+ [ laravel-chunk-upload] ( https://github.com/pionl/laravel-chunk-upload )
329+ was written by [ Martin Kluska] ( http://kluska.cz ) and is released under the
330+ [ MIT License] ( LICENSE.md ) .
331+
332+ Copyright (c) 2016 Martin Kluska
0 commit comments