首页 \ 问答 \ 文件上载在Windows 10边缘浏览器中不起作用(File upload does not work in Windows 10 edge browser)

文件上载在Windows 10边缘浏览器中不起作用(File upload does not work in Windows 10 edge browser)

文件上载功能在Windows 10边缘浏览器中不起作用。 它适用于其他浏览器。

<input type="file" name="uploadField" />

谁能告诉我如何解决这个问题?


The file upload function does not work in Windows 10 edge browser. It worked fine with other browsers.

Code

<input type="file" name="uploadField" />

Can anyone please let me know how to solve this issue?


原文:https://stackoverflow.com/questions/32093292
更新时间:2023-05-03 09:05

最满意答案

是包括可以减慢网站速度,但它可以通过使用缓存系统来解决。

在我的CMS上,我创建了一个模板解析器,它可以处理所有生成的HTML,并在包含的内容中使用。 但是通过实现一个缓存来保存HTML输出的副本,该副本的有效期为10分钟。 并在内容更新时自动擦除; 它减少了代码运行所需的次数,并且仅在实际需要时才包含这些包含。

我在我当前的网站http://www.chris-shaw.com上使用它


Yes includes can slow a website down, but it can be combatted with the use of a cache system.

On my CMS, I created a Template Parser which handles all the generation of HTML and is used across includes. But by having a cache implemented which saves a copy of the HTML output which has an expiry of 10 mins. and is automatically wiped when content is updated; it reduces the amount of times your code needs to run and those includes are only included when actually needed.

I use this on my current site http://www.chris-shaw.com

相关问答

更多
  • 除非您使用缓存库,否则每次请求到来时都会反复包含这些文件。 肯定会减慢速度。 创建一个仅include -s需要include -ed的框架。 Unless you use cache libraries, everytime a request comes those files would be included again and again. Surely it would slow things down. Create a framework that only include-s what n ...
  • 你应该基准。 用不同的包含执行同一页面的时间。 但我想这与30个文件没有多大区别。 但是你可以节省时间,只需在php.ini中启用APC (这是一个PECL扩展,所以你需要安装它)。 它会缓存你的文件的解析内容,这将显着加快速度。 顺便说一句:懒惰没什么问题,它甚至是一种美德 ;) You should benchmark. Time the execution of the same page with different includes. But I guess it won't make much ...
  • 理解的最好方法是衡量。 尝试将这40个js文件合并成一个文件,看看它是否有很大的不同。 同样压缩它们可以降低带宽成本。 有多个包含会有开销,但正如你所说那些页面被缓存并且开销应该只在第一个请求上。 我认为,如果我们忽略这种初始开销,那么与那些操作DOM的脚本所花费的时间相比,性能差异将不会很大。 The best way to understand is to measure. Try merging those 40 js files into a single one and see if it mak ...
  • 是包括可以减慢网站速度,但它可以通过使用缓存系统来解决。 在我的CMS上,我创建了一个模板解析器,它可以处理所有生成的HTML,并在包含的内容中使用。 但是通过实现一个缓存来保存HTML输出的副本,该副本的有效期为10分钟。 并在内容更新时自动擦除; 它减少了代码运行所需的次数,并且仅在实际需要时才包含这些包含。 我在我当前的网站http://www.chris-shaw.com上使用它 Yes includes can slow a website down, but it can be combatte ...
  • 这是因为你已经在这些状态中添加了转换。 我会改变: *:link, *:visited, *:hover, *:active, *:focus { 至 a:link, a:visited, a:hover, a:active, a:focus, [...Other elements...] { 所以它更有针对性。 否则,当您移动鼠标时,会触发悬停状态,导致浏览器必须检查转换。 That's because you've added transitions to everything on those s ...
  • include_path=".:/php/includes" 要么 : include_path=".;c:\php\includes" ( 文档 ) include_path=".:/php/includes" Or : include_path=".;c:\php\includes" (Documentation)
  • 有很多因素会影响网站的速度。 检查网络服务器日志(DDOS攻击?) - 如果您确切知道减速发生的时间,您应该能够在发生之前看到请求的内容 检查mysql进程列表以查看是否有失控进程 如果使用Linux,请使用top或htop检查CPU和内存使用情况(或Windows中的任务管理器) 对某些用户来说,它是否缓慢? 全部用户? 让每个用户运行速度测试以确保问题不在他们的最后。 在网络服务器上运行速度测试 减速是在所有页面上还是仅在某些页面上? 检查代码以查看是否有更改。 (也许你被黑了?) 重启apache和m ...
  • user_uploads无法直接检查$ _GET的原因是什么? 否则,该脚本中发生的任何事情都可以封装在一个函数中,并将$ _GET值作为参数传递。 或者将$ _GET复制到user_upload代码检查的全局变量。 Any reason that user_uploads can't check $_GET directly? Otherwise, whatever's happening in that script could be encapsulated in a function, and yo ...
  • 我认为你需要重新定义你的实体关系。 根据您的代码:类别,相册和图像都具有相同的地位。 我不认为这是真的,但这不是我的设计。 无论如何,请将您的模型包含在控制器类中
  • 它耗时太长的原因是在web.config上的Compilation键上找到the batch compile 。 您可以更改一些批处理相关参数,以将批处理编译限制为更少的页面/模块,从而使您的站点启动更快一些。 架构和影响它的值 :

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)