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
Surface virus detection error on file upload with server log entry
- Upload route now returns a specific 422 error when virus is detected
instead of falling through to the generic 'Failed to upload file' message
- Virus rejection is logged to server log via admin daemon with username,
filename, and file area
- Unknown upload errors now log to PHP error log before returning generic message
- Add errors.files.upload.virus_detected i18n key to en/es/fr
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
apiError('errors.files.upload.read_only', apiLocalizedText('errors.files.upload.read_only', 'This file area is read-only', $user));
2487
2487
} elseif ($message === 'Only administrators can upload files to this area.') {
2488
2488
apiError('errors.files.upload.admin_only', apiLocalizedText('errors.files.upload.admin_only', 'Only administrators can upload files to this area', $user));
0 commit comments