
new endpoints for uploads POST api/public/v1/files/upload Change-Id: If35c616eb243bf5ec66205fb630fe30ce4dad647 Signed-off-by: smarcet <smarcet@gmail.com>
44 lines
1.3 KiB
PHP
44 lines
1.3 KiB
PHP
<?php
|
|
|
|
return [
|
|
/*
|
|
* The storage config
|
|
*/
|
|
'storage' => [
|
|
/*
|
|
* Returns the folder name of the chunks. The location is in storage/app/{folder_name}
|
|
*/
|
|
'chunks' => 'chunks',
|
|
'disk' => 'local',
|
|
],
|
|
'clear' => [
|
|
/*
|
|
* How old chunks we should delete
|
|
*/
|
|
'timestamp' => '-3 HOURS',
|
|
'schedule' => [
|
|
'enabled' => true,
|
|
'cron' => '25 * * * *', // run every hour on the 25th minute
|
|
],
|
|
],
|
|
'chunk' => [
|
|
// setup for the chunk naming setup to ensure same name upload at same time
|
|
'name' => [
|
|
'use' => [
|
|
'session' => env('CHUNK_UPLOAD_USE_SESSION_ID', true), // should the chunk name use the session id? The uploader must send cookie!,
|
|
'browser' => env('CHUNK_UPLOAD_USE_BROWSER_ID', false), // 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
|
|
],
|
|
],
|
|
];
|