ldc-com-app-bo/config/chunk-upload.php

53 lines
1.2 KiB
PHP
Raw Permalink Normal View History

2023-04-05 17:20:30 +02:00
<?php
/**
* @see https://github.com/pionl/laravel-chunk-upload
*/
return [
/*
* The storage config
*/
'storage' => [
2023-04-05 17:20:30 +02:00
/*
* Returns the folder name of the chunks. The location is in storage/app/{folder_name}
*/
'chunks' => 'chunks',
'disk' => 'local',
2023-04-05 17:20:30 +02:00
],
'clear' => [
2023-04-05 17:20:30 +02:00
/*
* How old chunks we should delete
*/
'timestamp' => '-3 HOURS',
'schedule' => [
2023-04-05 17:20:30 +02:00
'enabled' => true,
// Run every hour on the 25th minute.
'cron' => '25 * * * *',
2023-04-05 17:20:30 +02:00
],
],
'chunk' => [
2023-04-05 17:20:30 +02:00
// Setup for the chunk naming setup to ensure same name upload at same time.
'name' => [
'use' => [
// Should the chunk name use the session id? The uploader must send cookie!
'session' => true,
// Instead of session we can use the ip and browser?
'browser' => false,
],
],
],
'handlers' => [
// A list of handlers/providers that will be appended to existing list of handlers.
'custom' => [],
2023-04-05 17:20:30 +02:00
// Overrides the list of handlers - use only what you really want.
'override' => [],
],
];