Update upload functionality