ldc-dam/config/chunk-upload.php

38 lines
1.1 KiB
PHP
Raw Normal View History

2022-07-28 09:55:16 +02:00
<?php
return [
2022-07-28 12:32:37 +02:00
// * The storage config
2022-07-28 09:55:16 +02:00
'storage' => [
2022-07-28 12:32:37 +02:00
// * Returns the folder name of the chunks. The location is in storage/app/{folder_name}
2022-07-28 09:55:16 +02:00
'chunks' => 'chunks',
'disk' => 'chunk_upload',
],
'clear' => [
2022-07-28 12:32:37 +02:00
// * How old chunks we should delete
2022-07-28 09:55:16 +02:00
'timestamp' => '-3 HOURS',
'schedule' => [
'enabled' => true,
2022-07-28 12:32:37 +02:00
// * run every hour on the 25th minute
'cron' => '25 * * * *',
2022-07-28 09:55:16 +02:00
],
],
'chunk' => [
2022-07-28 12:32:37 +02:00
// * setup for the chunk naming setup to ensure same name upload at same time
2022-07-28 09:55:16 +02:00
'name' => [
'use' => [
2022-07-28 12:32:37 +02:00
// * 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,
2022-07-28 09:55:16 +02:00
],
],
],
'handlers' => [
2022-07-28 12:32:37 +02:00
// * A list of handlers/providers that will be appended to existing list of handlers
2022-07-28 09:55:16 +02:00
'custom' => [],
2022-07-28 12:32:37 +02:00
// * Overrides the list of handlers - use only what you really want
'override' => [],
2022-07-28 09:55:16 +02:00
],
];