Added support for uploading a image to a API route.