update URL upload function.