Refactored some thing, ioblob doesnt have length, must pass content to _check_file_type directly