如何使用C#从ASP.NET应用程序将ppt文件上传到Sql Server 2008 [英] How to upload a ppt file into Sql Server 2008 from ASP.NET application using C#

查看:81
本文介绍了如何使用C#从ASP.NET应用程序将ppt文件上传到Sql Server 2008的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨我有一个ppt文件。使用文件上传控件我可以保存doc,docx,xl​​s,xlsx,pdf fiels但我无法存储ppt文件。



请建议我使用解决方案。



谢谢,

Rajesh

Hi i have a ppt file. Using file upload control i am able to save doc,docx,xls,xlsx,pdf fiels but i'm unable to store ppt file.

Please suggest me with a solution.

Thanks,
Rajesh

推荐答案

你有什么错误上传时获取。文件上传控件不会手动阻止任何文件类型。看看你是否添加了任何代码来限制某些文件扩展名或某些东西,或者你可以在不同的浏览器中查看。你还需要检查ppt的文件大小。默认文件上传控件允许上传4 MB文件。如果你的文件大小超过4 MB,你需要手动设置maxrequestlength表单web配置文件。



希望这对你有帮助。
what error do you get while upload. file upload control will not manually block any file type. see if you have add any code to restricts some file extensions or something or may be you can check things in different browser. also you need to check the file size of ppt. by default file upload control allow to upload 4 MB file. you need to manually set maxrequestlength form web config file if your file size is more than 4 MB.

hope this will help you .


这篇关于如何使用C#从ASP.NET应用程序将ppt文件上传到Sql Server 2008的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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