5ec9451ef2
- Correct uploadSSHFile parameter order and types in FileManagerModern.tsx: * Pass directory path instead of full file path * Extract file.name instead of passing File object * Read file content using FileReader API * Support both text and binary files with proper encoding - Apply same fixes to FileManagerOperations.tsx upload functionality - Add intelligent file type detection: * Text files read as UTF-8 strings * Binary files read as ArrayBuffer and converted to base64 * Support common text file extensions and MIME types - Include hostId parameter in uploadSSHFile calls for proper authentication This resolves the "File path, name, and content are required" error by ensuring all required parameters are correctly provided to the API.