added createDns call to upload function