Ajay | Bugfix - Invalid file type error was not showing up.
Fix - Read post body before sending response.