Moved file upload to owin middleware.