url are translated to local filenam in the type detection function