Nearly complete uploader system with example code.