mock upload functionality