• <i id='k63G5'><tr id='k63G5'><dt id='k63G5'><q id='k63G5'><span id='k63G5'><b id='k63G5'><form id='k63G5'><ins id='k63G5'></ins><ul id='k63G5'></ul><sub id='k63G5'></sub></form><legend id='k63G5'></legend><bdo id='k63G5'><pre id='k63G5'><center id='k63G5'></center></pre></bdo></b><th id='k63G5'></th></span></q></dt></tr></i><div id='k63G5'><tfoot id='k63G5'></tfoot><dl id='k63G5'><fieldset id='k63G5'></fieldset></dl></div>
  • <small id='k63G5'></small><noframes id='k63G5'>

      1. <legend id='k63G5'><style id='k63G5'><dir id='k63G5'><q id='k63G5'></q></dir></style></legend><tfoot id='k63G5'></tfoot>

          <bdo id='k63G5'></bdo><ul id='k63G5'></ul>

      2. 以编程方式设置要在网页中上传的文件名

        时间:2023-06-03
        <legend id='gIm4k'><style id='gIm4k'><dir id='gIm4k'><q id='gIm4k'></q></dir></style></legend>
        <tfoot id='gIm4k'></tfoot>

              <tbody id='gIm4k'></tbody>
            <i id='gIm4k'><tr id='gIm4k'><dt id='gIm4k'><q id='gIm4k'><span id='gIm4k'><b id='gIm4k'><form id='gIm4k'><ins id='gIm4k'></ins><ul id='gIm4k'></ul><sub id='gIm4k'></sub></form><legend id='gIm4k'></legend><bdo id='gIm4k'><pre id='gIm4k'><center id='gIm4k'></center></pre></bdo></b><th id='gIm4k'></th></span></q></dt></tr></i><div id='gIm4k'><tfoot id='gIm4k'></tfoot><dl id='gIm4k'><fieldset id='gIm4k'></fieldset></dl></div>

              <small id='gIm4k'></small><noframes id='gIm4k'>

              • <bdo id='gIm4k'></bdo><ul id='gIm4k'></ul>
                • 本文介绍了以编程方式设置要在网页中上传的文件名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  有没有办法以编程方式设置要从网页上传的文件的名称?我怀疑浏览器安全限制使这不可能,但我希望有人能证明我错了.

                  Is there a way to programmatically set the name of a file to be uploaded from a web page? I suspect that browser security restrictions make this impossible, but I'm hoping someone will prove me wrong.

                  我有一个需要让管理员上传 HTML 的 Web 应用程序.管理员选择 HTML 文件,然后应用程序上传该文件,并找出所有支持文件(图像、样式表等)并上传它们.似乎没有办法以编程方式从网页上传支持文件,因为用户必须明确指定每个文件.

                  I have a web application that needs to let the administrator upload HTML. The admin selects the HTML file, then the app uploads that file, plus figures out all the supporting files (images, stylesheet, etc) and uploads them too. There doesn't seem to be a way to programmatically upload the supporting files from a web page, since the user has to specify each file explicitly.

                  目前我有一个单独的 Windows 应用程序来执行此操作,但最好将此功能与应用程序的其余部分集成.我的后端是带有 C# 的 ASP.NET.

                  Currently I have a separate Windows app to do this, but it would be ideal to have this functionality integrated with the rest of the app. My back end is ASP.NET with C#.

                  推荐答案

                  无法通过浏览器以编程方式从用户计算机中抓取文件.如果网站只能抓取东西,这将违反安全规定.

                  There is no way to programatically grab files from a user's computer via the browser. This would be a security violation if a website could just grab things.

                  这篇关于以编程方式设置要在网页中上传的文件名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:使用 MVC 3 上传文件 下一篇:使用 C#/.NET 将图像上传到服务器并将文件名存储

                  相关文章

                  最新文章

                  <legend id='1kR76'><style id='1kR76'><dir id='1kR76'><q id='1kR76'></q></dir></style></legend>
                  <tfoot id='1kR76'></tfoot>
                  <i id='1kR76'><tr id='1kR76'><dt id='1kR76'><q id='1kR76'><span id='1kR76'><b id='1kR76'><form id='1kR76'><ins id='1kR76'></ins><ul id='1kR76'></ul><sub id='1kR76'></sub></form><legend id='1kR76'></legend><bdo id='1kR76'><pre id='1kR76'><center id='1kR76'></center></pre></bdo></b><th id='1kR76'></th></span></q></dt></tr></i><div id='1kR76'><tfoot id='1kR76'></tfoot><dl id='1kR76'><fieldset id='1kR76'></fieldset></dl></div>
                • <small id='1kR76'></small><noframes id='1kR76'>

                  • <bdo id='1kR76'></bdo><ul id='1kR76'></ul>