文件上传控件中的空文件

发布于 2024-09-30 03:29:23 字数 108 浏览 0 评论 0原文

我正在使用asp.net的ajax工具包的AsyncFileUpload。但是,在上传大小为 0kb 的文件时,出现错误“未处理的异常:附加的文件为空”。

上传空白文件有什么解决办法吗?

I am using AsyncFileUpload of ajax toolkit of asp.net. But while uploading a file of size 0kb, it gives me error "Unhandled exception: the file attached is empty".

Is there any solution for uploading a blank file.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

等往事风中吹 2024-10-07 03:29:23

您的 AsyncFileUpload 控件是否位于 UpdatePanel 内?有一些浏览器安全功能不允许从 UpdatePanel 内发布文件。

如果您可以附上您的代码示例,我可能会更有帮助。

Is your AsyncFileUpload control located inside an UpdatePanel? There is some browser security feature that wont allow a file to be posted from within an UpdatePanel.

If you could attach an example of your code I could be more helpful.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文