Returning files with appropriate content types
Added post and get check