Handle multiple upload ways on your REST API.