pipe: Honor attachment ext and size restrictions