文件上载在本地主机上有效,但在服务器上不起作用 [英] file upload working on local host but not working on server
本文介绍了文件上载在本地主机上有效,但在服务器上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hi
我在项目中使用asp文件上传来上传图像和视频.两者都可以在本地主机上正常工作,但是在服务器上可以上传图像,但是在上传视频时,当我上传视频网站时,如果继续加载很长时间,将无法正常工作.视频的大小不是很大.我不知道为什么会这样.
请回复..谢谢..
解决方案
在服务器中创建一个共享文件夹,将该文件夹映射到您从中访问应用程序的本地计算机.复制过去的文件到共享文件夹,然后上传保存在共享文件夹中的文件.这样可以解决您的问题
添加
< httpruntime maxrequestlength = " enable = " />
在web.config
检查我的答案
hi
I am using asp file upload in my project to upload images and videos. both works fine on local host but on server image upload works but while uploading video, when i upload video website continue loads for a long time after that stops working. size of video is not so big. i dont know why its happening.
plz reply..thanks..
解决方案
Hi,
Create a share folder in your server, map that folder to your local machine from which u r accessing the application. Copy past the file to shared folder, then upload that file which is saved in share folder. this will resolve your problem
add
<httpruntime maxrequestlength="2097151" enable="true" />
in web.config
Check my answer
这篇关于文件上载在本地主机上有效,但在服务器上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文