mirror of
https://github.com/DumbWareio/DumbDrop.git
synced 2025-10-23 07:41:58 +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 MAX_RETRIES = 3;
|
||||
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
|
||||
function generateBatchId() {
|
||||
|
Reference in New Issue
Block a user