Update code to allow multiple uploads