将 vCard (.vcf) 文件上传到 IIS7 站点
我正在尝试将 vcard 文件上传到我使用 ASP.NET 构建的网站。它托管在 IIS7 服务器上。
当我尝试上传文件时,我不断遇到“内容类型不允许”错误。我对该目录具有写入权限,我已经添加了 vcard 的 MIME 类型并重新启动了 IIS 服务器,但它仍然拒绝接受。
我正在使用 DevExpress UploadControl,并且我已经从中删除了任何验证,因此我相当确定该控件不会限制文件上传。
还有其他建议吗?
I'm trying to upload a vcard file to a site i've built with ASP.NET. It's hosted on an IIS7 server.
I keep running into the "content type not allowed" error when i try to upload the file. I have write permission to the directory, I've already added the MIME type for vcards and restarted the IIS server, however it still refuses to take it.
I'm using DevExpress UploadControl and i've removed any validation from it so i am fairly certain the control is not restricting the file upload.
Any other suggestions ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许您的组件默认只允许某些内容类型,并且必须手动授予新内容类型的访问权限。
您能否调试服务器端代码,查看页面代码是否执行并准确找出哪个组件引发了该错误?
这是 HTTP 错误还是 .net 异常?
Maybe your component just allow some content types by default and new ones must be granted access manually.
Can you to debug your server side code, to see if your page code executes and to spot exactly what component are throwing up that error?
It's an HTTP error or a .net exception?