FCKeditor for ASP.NET:文件上传大小限制
我正在开发一个用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我还没有处理过这个问题(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).