supported https + ssl + enhanced api
added handling upload file