forked from pionl/laravel-chunk-upload
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
942 additions
and
484 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
tests | ||
travis.yml | ||
.php_cs | ||
.phplint.yml | ||
phpunit.xml | ||
CODE_OF_CONDUCT.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,6 @@ | |
composer.phar | ||
/vendor/ | ||
composer.lock | ||
|
||
/build | ||
.phpunit.result.cache | ||
.php_cs.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
$finder = PhpCsFixer\Finder::create() | ||
->in(__DIR__ . '/src') | ||
->in(__DIR__ . '/config') | ||
->in(__DIR__ . '/tests') | ||
->name('*.php') | ||
->ignoreDotFiles(true) | ||
->ignoreVCS(true); | ||
|
||
return PhpCsFixer\Config::create() | ||
->setRules(array( | ||
'@PHP56Migration' => true, | ||
'@Symfony' => true, | ||
'align_multiline_comment' => true, | ||
'array_indentation' => true, | ||
'array_syntax' => ['syntax' => 'short'], | ||
'no_superfluous_phpdoc_tags' => false, | ||
)) | ||
->setFinder($finder); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
path: ./ | ||
jobs: 5 | ||
cache: build/phplint.cache | ||
extensions: | ||
- php | ||
exclude: | ||
- vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
language: php | ||
php: | ||
- '7.0' | ||
- '7.1' | ||
- '7.2' | ||
- '7.3' | ||
- '7.4' | ||
os: | ||
- linux | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,41 @@ | ||
<?php | ||
return [ | ||
|
||
/** | ||
return [ | ||
/* | ||
* The storage config | ||
*/ | ||
"storage" => [ | ||
/** | ||
'storage' => [ | ||
/* | ||
* Returns the folder name of the chunks. The location is in storage/app/{folder_name} | ||
*/ | ||
"chunks" => "chunks", | ||
"disk" => "local" | ||
'chunks' => 'chunks', | ||
'disk' => 'local', | ||
], | ||
"clear" => [ | ||
/** | ||
'clear' => [ | ||
/* | ||
* How old chunks we should delete | ||
*/ | ||
"timestamp" => "-3 HOURS", | ||
"schedule" => [ | ||
"enabled" => true, | ||
"cron" => "25 * * * *" // run every hour on the 25th minute | ||
] | ||
'timestamp' => '-3 HOURS', | ||
'schedule' => [ | ||
'enabled' => true, | ||
'cron' => '25 * * * *', // run every hour on the 25th minute | ||
], | ||
], | ||
"chunk" => [ | ||
'chunk' => [ | ||
// setup for the chunk naming setup to ensure same name upload at same time | ||
"name" => [ | ||
"use" => [ | ||
"session" => false, // should the chunk name use the session id? The uploader must send cookie!, | ||
"browser" => true // instead of session we can use the ip and browser? | ||
] | ||
] | ||
] | ||
'name' => [ | ||
'use' => [ | ||
'session' => false, // should the chunk name use the session id? The uploader must send cookie!, | ||
'browser' => true, // instead of session we can use the ip and browser? | ||
], | ||
], | ||
], | ||
'handlers' => [ | ||
// A list of handlers/providers that will be appended to existing list of handlers | ||
'custom' => [], | ||
// Overrides the list of handlers - use only what you really want | ||
'override' => [ | ||
// \Pion\Laravel\ChunkUpload\Handler\DropZoneUploadHandler::class | ||
], | ||
], | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.