Uses CURLFile if possible and checks cURL limitation
released version 3.5