Added file transmission through base 64 encoding in the API, added a metthod to handle  uploads