Reverting upload functionality