Commit Graph

23 Commits

Author SHA1 Message Date
Greirson Lee-Thorp
79f6c53871 feat: improve single file upload batch ID generation
- Add automatic batch ID generation for single file uploads
- Generate unique batch ID using timestamp and random string
- Enhance batch ID validation to handle single file and multi-file upload scenarios
- Improve error handling for batch ID format validation
2025-02-03 17:14:03 -08:00
Greirson Lee-Thorp
dec54b7803 feat: implement batch upload inactivity cleanup mechanism
- Add batchActivity Map to track batch upload timestamps
- Create interval-based cleanup for inactive batch uploads
- Update upload chunk route to refresh batch activity timestamp
- Remove manual timeout for folder mappings in favor of centralized cleanup
- Improve resource management for long-running batch uploads
2025-02-03 17:10:43 -08:00
Greirson Lee-Thorp
a488c753db feat: improve file upload handling with atomic file and folder creation
- Refactor getUniqueFilePath and getUniqueFolderPath to use async/await and atomic file operations
- Enhance upload initialization to handle file and folder naming conflicts more robustly
- Implement file handle management to prevent resource leaks
- Add error handling for file and folder creation scenarios
- Ensure parent directories are created recursively when needed
2025-02-03 17:07:43 -08:00
Greirson Lee-Thorp
140d58cdc3 feat: improve batch ID generation and validation for file uploads
- Add batch ID validation function with specific format requirements
- Generate more secure and unique batch IDs using timestamp and random string
- Update client-side batch ID generation to create consistent, unique identifiers
- Enhance upload initialization route to validate batch ID before processing
- Modify FileUploader to use generated batch ID during uploads
2025-02-03 16:56:30 -08:00
Greirson Lee-Thorp
dac7143a19 feat: improve file and folder upload handling with unique naming
- Add support for batch uploads with unique folder and file naming
- Implement getUniqueFilePath and getUniqueFolderPath to prevent file/folder overwrites
- Add batch ID tracking for folder uploads
- Enhance client-side file handling to support batch uploads
- Improve file path generation and logging for uploads
2025-02-03 15:55:40 -08:00
Greirson Lee-Thorp
4ff8469d69 fix: improve Apprise notification security and command execution
- Sanitize filename to escape special characters
- Use array syntax for execAsync to prevent shell injection
- Disable shell execution for safer command handling
- Improve logging with sanitized filename
2025-02-02 19:11:20 -08:00
Greirson Lee-Thorp
34c12d47fb added storage placeholder for total size of upload folder 2025-01-31 21:28:53 -08:00
Greirson Lee-Thorp
b91f82f3aa feat: enhance Apprise notifications with file size support
- Add file size formatting to notifications with auto-scaling units (B, KB, MB, GB, TB)
- Add APPRISE_SIZE_UNIT environment variable for fixed size units
- Update default notification message to include file size: "New file uploaded: {filename} ({size})"
- Fix filename reference in notifications to use safeFilename
- Fix async/await handling in upload chunk handler
- Add size formatting documentation to README
- Update environment variable documentation

Example notification: "New file uploaded: example.pdf (2.54MB)"
2025-01-31 21:07:53 -08:00
Greirson Lee-Thorp
851fc95f1e Add customizable site title feature via DUMBDROP_TITLE environment variable 2025-01-31 01:26:55 -08:00
abite
cb58631664 Merge commit from fork
fix: path traversal vuln
2025-01-31 00:51:10 -06:00
Paul Pfeister
2acfd21778 fix: path traversal vuln 2025-01-31 01:26:19 -05:00
Greirson Lee-Thorp
aec1265178 Add notifications support via Apprise
- Added Apprise integration for flexible notifications
- Added notification environment variables
- Added notification logging
- Updated documentation with setup instructions
- Added Python and Apprise to Dockerfile
2025-01-30 20:52:28 -08:00
abiteman
87d5987809 Bruteforce protection & new dockerhub config 2025-01-27 22:45:55 -06:00
abiteman
4045693d1f Fixed Security Vulnerability 2025-01-25 17:33:39 -06:00
abiteman
97ffd9c4c8 Security Fix/Improvement
Fixed timing attack vulnerability for pin access. Added variable length pins. Users  can now set a pin 4-10 characters long instead of just 4.
2025-01-25 08:02:37 -06:00
abiteman
c2ee46717f Add simple auth
Added Pin verification, set as DUMBDROP_PIN env variable.
2025-01-24 11:44:15 -06:00
abiteman
949a7fbc28 Add File Size Limit Variable, Folder Uploads & Dark Mode
Added MAX_FILE_SIZE variable to limit upload size
Added Dark Mode toggle to UI - Default is dark on load
Added Folder Upload with nested directories
2025-01-23 13:53:30 -06:00
abiteman
3010849c8a fix chunk upload failure 2025-01-22 16:08:12 -06:00
abiteman
a0731260ad add chunk uploads and progress bar 2025-01-22 15:51:25 -06:00
abiteman
10f19e5ff9 fix paths 2025-01-22 15:02:19 -06:00
abiteman
338854f46b Update server.js 2025-01-22 14:44:33 -06:00
abiteman
fb60018903 troubleshoot filepath & add logging 2025-01-22 14:25:45 -06:00
abiteman
f2927d97db Initial Commit 2025-01-22 13:10:59 -06:00