Update v1.2.0-beta - Dynamic context menu & permissions
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
✨ New Features: - Dynamic permission-based context menus for files and folders - Support for collaborative folder access control - Upload to specific folders including shared folders - Changelog modal for version updates - Improved dark mode synchronization 🐛 Bug Fixes: - Fixed context menu displaying incorrect options - Fixed CSS !important override preventing dynamic menu behavior - Fixed folder collaboration permission checks - Fixed breadcrumb navigation with empty segments - Fixed "Premature close" error loop in attachments - Fixed missing user variable in admin routes - Fixed avatar loading COEP policy issues 🔒 Security: - Added security middleware (CSRF, rate limiting, input validation) - Fixed collaboration folder access validation - Improved shared folder permission handling 🎨 UI/UX Improvements: - Removed Actions column from folder view - Context menu now properly hides/shows based on permissions - Better visual feedback for collaborative folders - Improved upload flow with inline modals 🧹 Code Quality: - Added collaboration data to folder routes - Refactored context menu logic for better maintainability - Added debug logging for troubleshooting - Improved file upload handling with chunking support
This commit is contained in:
@@ -116,7 +116,11 @@ router.get('/:userId/:filename', async (req, res) => {
|
||||
await pipeline(readStream, res);
|
||||
}
|
||||
} catch (err) {
|
||||
ErrorLogger.error('Error handling request:', err);
|
||||
// Ne pas logger les fermetures prématurées côté client (comportement normal)
|
||||
// Cela se produit quand l'utilisateur annule le téléchargement, ferme le navigateur, etc.
|
||||
if (err.code !== 'ERR_STREAM_PREMATURE_CLOSE' && err.code !== 'ECONNRESET' && err.code !== 'EPIPE') {
|
||||
ErrorLogger.error('Error handling request:', err);
|
||||
}
|
||||
if (!res.headersSent) {
|
||||
res.status(500).send('Error reading file.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user