FCKeditor for ASP.NET:文件上传大小限制

发布于 2024-09-02 06:41:58 字数 183 浏览 4 评论 0原文

我正在开发一个用 VB 编写的 ASP.NET 网站。我在我的页面中嵌入了 fdkeditor,并且运行良好。由于它包含图像上传功能,效果也很好,因此我需要在上传之前限制文件的大小。

我想知道我在网络上找不到任何令人满意的东西,似乎 fckeditor 的开发人员从未考虑过这一点。

有人解决过吗?

谢谢

I'm working on an asp.net website written in vb. I embedded fdkeditor in my page, and it works fine. As it includes image-upload feature, which works fine as well, I need to limit the size of the file before it's been uploaded.

I wonder I couldn't find anyting satisfactory on web, it seems fckeditor's developers haven't ever thought about that.

Has anyone workarounded it?

Thanks

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

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

发布评论

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

评论(1

一城柳絮吹成雪 2024-09-09 06:41:58

我还没有处理过这个问题(FCKEditor),但这有帮助吗? http://cksource.com/forums/viewtopic.php?f= 10&t=9930

正如 Matti 上面指出的,如果它使用默认的 HTML 文件输入,那么你就不走运了,因为在上传之前无法在客户端检查文件大小(此时,如果它太大,只有这样它才会抛出异常)。

I've not dealt with this issue (FCKEditor), but does this help? http://cksource.com/forums/viewtopic.php?f=10&t=9930

As Matti points out above, if it uses the default HTML file input then you're out of luck because there's no way to check file size on the client-side before uploading (at which point, if it's too big, only then does it throw an exception).

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