Apache commons 文件上传替代方案

发布于 2024-09-12 19:05:28 字数 442 浏览 4 评论 0原文

我想知道 StackOverflow 用户过去使用过什么 Java 文件上传 API 并且会推荐使用什么?快速 Google 搜索似乎表明最常用的 API 是 Apache Commons File Upload(目前为 1.2.1),但是,我们在使用此库处理较大文件时遇到了一些问题,而我们无法处理这些文件。解决。

有没有人找到他们推荐的可靠文件上传库(除了 Apache Commons 库)?

编辑:Streaming API 不是一个选项,因为它使用导致我们问题的相同底层类。

EDIT2:我们最初的问题似乎是某种负载平衡问题。我们的克隆实例使用 Apache/AJP1.3,实时实例使用 Zeus XTM。使用服务器 IP 而不是主机名绕过负载均衡器似乎可以使问题消失。

EDIT3:事实证明这是客户端防火墙的问题。看来他们……呃……当他们说他们肯定知道这不是防火墙问题时,他们并不完全诚实。

I was wondering what Java File Upload API's StackOverflow users have used in the past and would recommend using? A quick Google Search seems to indicate that the most commonly used API is Apache Commons File Upload (currently at 1.2.1), however, we've had some issues regarding the use of this library with larger files that we've been unable to solve.

Has anyone found a reliable file upload library (aside from the Apache Commons one) that they'd recommend?

EDIT: The Streaming API is not an option as it uses the same underlying class that is causing our issue.

EDIT2: Our original issue appears to be some kind of problem with load balancing. Our clone instance uses Apache/AJP1.3 and the live instance uses Zeus XTM. Bypassing the load balancer by using the server IP rather than host name seems to cause the problem to disappear.

EDIT3: This turned out to be an issue with the clients firewall. It appears that they were.. er.. not being entirely truthful when they said that the knew definitely this was not a Firewall issue.

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

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

发布评论

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

评论(2

一曲爱恨情仇 2024-09-19 19:05:28

如果您有时间或内存相关的问题,您是否查看过 commons 的 streaming API文件上传?

If you have time or memory related problems, have you looked at the streaming API of commons file upload?

半透明的墙 2024-09-19 19:05:28

看看这些设置,默认限制是 8MB

upload_max_filesize
post_max_size

have a look at theese settings, the limit is 8MB by default

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