You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
changes 3/23/2025 v1.0.1
Resumable File Upload Integration and Folder Support
Legacy Drag-and-Drop Folder Uploads:
Supports both file and folder uploads via drag-and-drop.
Recursively traverses dropped folders to extract files.
Uses original XHR-based upload code for folder uploads so that files are placed in the correct folder (i.e. based on the current folder in the app’s folder tree).
Resumable.js for File Picker Uploads:
Integrates Resumable.js for file uploads via the file picker.
Provides pause, resume, and retry functionality:
Pause/Resume: A pause/resume button is added for each file selected via the file picker. When the user clicks pause, the file upload pauses and the button switches to a “play” icon. When the user clicks it again, the system triggers a resume sequence (calling the upload function twice to ensure proper restart).
Retry: If a file upload encounters an error, the pause/resume button changes to a “replay” icon, allowing the user to retry the upload.
During upload, the UI displays the progress percentage along with the calculated speed (bytes/KB/MB per second).
Files are previewed using material icons for non-image files and actual image previews for image files (using a helper function that creates an object URL for image files).
Temporary Chunk Folder Removal:
When a user cancels an upload via the remove button (X), a POST request is sent to a PHP endpoint (removeChunks.php) that:
Validates the CSRF token.
Recursively deletes the temporary folder (which stores file chunks) from the uploads directory.
Additional Details:
The file list UI remains visible (instead of auto-disappearing after 5 seconds) if there are any files still present or errors, ensuring that users can retry failed uploads.
The system uses a chunk size of 3MB and supports multiple simultaneous uploads.
All endpoints include CSRF protection and input validation to ensure secure operations.
changes 3/22/2025
Change Password added and visibile to all users.
Brute force protection added and a log file for fail2ban created
Fix add user and setup user issue
Added folder breadcrumb with drag and drop support