如何在浏览器Azure C#函数中打开容器文件 [英] How to open a container file in browser Azure C# Function

查看:47
本文介绍了如何在浏览器Azure C#函数中打开容器文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将文件1.txt从容器A复制到容器B.

I have copied a file 1.txt from Container A to Container B.

我还返回了复制文件的完整URL.

I am also returning the complete URL of the copied file.

    return new OkObjectResult(targetBlobClient.Uri);

现在,我只想在当前用来调用该函数的当前浏览器选项卡中直接打开此文件,而不是返回.我该怎么办?请指导.

Now, rather than returning I just want to open this file directly in the current browser tab which i used to invoke the function . How can I go about that ? Please guide.

推荐答案

加拉夫@ @ https://stackoverflow.com/users/188096/gaurav-mantri-ais

  string responseURL= targetBlobClient.Uri.ToString();

  return new RedirectResult(responseURL, false);

这篇关于如何在浏览器Azure C#函数中打开容器文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆