@@ -17,9 +17,10 @@ Easy to use service for chunked upload with several js providers on top of Larav
17
17
* [ Route] ( #route )
18
18
* [ Providers/Handlers] ( #providers-handlers )
19
19
* [ Changelog] ( #changelog )
20
- * [ Contribution] ( #contribution )
20
+ * [ Contribution or overriding] ( #contribution-or-overriding )
21
+ * [ Suggested frontend libs] ( #suggested-frontend-libs )
21
22
22
- ## Instalation
23
+ ## Installation
23
24
24
25
** Install via composer**
25
26
@@ -247,7 +248,7 @@ When using uploader for the cross domain request you must setup the `chunk.name.
247
248
Then setup your laravel [ Setup guide] ( https://github.com/barryvdh/laravel-cors )
248
249
249
250
## 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.
251
252
252
253
### ContentRangeUploadHandler
253
254
@@ -313,40 +314,19 @@ The cloud drive is not supported becouse of the chunked write (probably could be
313
314
- [ ] add an example project
314
315
- [ ] add support to different drive than a local drive
315
316
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.
347
319
348
320
# Suggested frontend libs
349
321
350
322
* https://github.com/lemonCMS/react-plupload
351
323
* https://github.com/moxiecode/plupload
352
324
* 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