fix upload controller