mirror of
https://github.com/DumbWareio/DumbDrop.git
synced 2025-10-29 02:53:31 +00:00
feat: Enhance AUTO_UPLOAD configuration parsing
- Improve AUTO_UPLOAD environment variable parsing
- Add support for multiple truthy values ('true', '1', 'yes')
- Convert input to lowercase for case-insensitive comparison
This commit is contained in:
@@ -60,7 +60,7 @@
|
|||||||
const CHUNK_SIZE = 1024 * 1024; // 1MB chunks
|
const CHUNK_SIZE = 1024 * 1024; // 1MB chunks
|
||||||
const MAX_RETRIES = 3;
|
const MAX_RETRIES = 3;
|
||||||
const RETRY_DELAY = 1000;
|
const RETRY_DELAY = 1000;
|
||||||
const AUTO_UPLOAD = '{{AUTO_UPLOAD}}' === 'true';
|
const AUTO_UPLOAD = ['true', '1', 'yes'].includes('{{AUTO_UPLOAD}}'.toLowerCase());
|
||||||
|
|
||||||
// Utility function to generate a unique batch ID
|
// Utility function to generate a unique batch ID
|
||||||
function generateBatchId() {
|
function generateBatchId() {
|
||||||
|
|||||||
Reference in New Issue
Block a user