File upload and download finally working with the RESTful apis