Added first cut of upload handling.