sketch out more emulation to uploadFile