使用Django-filer时Django中的文件大小上传限制

时间:2017-03-15 22:42:54

标签: python django mod-wsgi django-file-upload django-filer

我不知道在哪里发布这个,我正在使用django-filer(https://django-filer.readthedocs.io/en/latest/)并在尝试上传文件时遇到限制。问题是软件无声地失败并且没有出现任何错误,并且表现得很好。

虽然我理解Django-filer是利基(似乎没有支持论坛),我试图弄清楚从哪里开始寻找甚至开始麻烦拍摄我的文件超过2GB没有上传。我想我应该说它不会无声地失败,但是我在var / log / httpd / error_log中看到的错误对我来说真的没有意义:

[Wed Mar 15 16:19:16.107217 2017] [authz_core:debug] [pid 15399] mod_authz_core.c(809): [client 172.20.0.80:43660] AH01626: authorization result of Require all granted: granted, referer: https://somesite.com/admin/filer/folder/23/list/?order_by=-modified_at
[Wed Mar 15 16:19:16.107234 2017] [authz_core:debug] [pid 15399] mod_authz_core.c(809): [client 172.20.0.80:43660] AH01626: authorization result of <RequireAny>: granted, referer: https://somesite.com/admin/filer/folder/23/list/?order_by=-modified_at
[Wed Mar 15 16:19:16.614657 2017] [:info] [pid 16476] mod_wsgi (pid=16476): Initializing Python.
[Wed Mar 15 16:19:17.235272 2017] [:info] [pid 16476] mod_wsgi (pid=16476): Attach interpreter ''.
[Wed Mar 15 16:19:17.236272 2017] [proxy:debug] [pid 16476] proxy_util.c(1843): AH00925: initializing worker proxy:reverse shared
[Wed Mar 15 16:19:17.236298 2017] [proxy:debug] [pid 16476] proxy_util.c(1885): AH00927: initializing worker proxy:reverse local
[Wed Mar 15 16:19:17.236353 2017] [proxy:debug] [pid 16476] proxy_util.c(1936): AH00931: initialized single connection worker in child 16476 for (*)
[sthomas@sw-webserver swsite]$ sudo tail -f /var/log/httpd/error_log
[Wed Mar 15 15:21:20.544340 2017] [:error] [pid 15367]   File "/usr/lib64/python2.7/site-packages/django/db/backends/utils.py", line 79, in execute
[Wed Mar 15 15:21:20.544343 2017] [:error] [pid 15367]     return super(CursorDebugWrapper, self).execute(sql, params)
[Wed Mar 15 15:21:20.544346 2017] [:error] [pid 15367]   File "/usr/lib64/python2.7/site-packages/django/db/backends/utils.py", line 64, in execute
[Wed Mar 15 15:21:20.544350 2017] [:error] [pid 15367]     return self.cursor.execute(sql, params)
[Wed Mar 15 15:21:20.544353 2017] [:error] [pid 15367]   File "/usr/lib64/python2.7/site-packages/django/db/utils.py", line 95, in __exit__
[Wed Mar 15 15:21:20.544357 2017] [:error] [pid 15367]     six.reraise(dj_exc_type, dj_exc_value, traceback)
[Wed Mar 15 15:21:20.544360 2017] [:error] [pid 15367]   File "/usr/lib64/python2.7/site-packages/django/db/backends/utils.py", line 64, in execute
[Wed Mar 15 15:21:20.544363 2017] [:error] [pid 15367]     return self.cursor.execute(sql, params)
[Wed Mar 15 15:21:20.544366 2017] [:error] [pid 15367] DataError: integer out of range

所以我看到有一个错误,看起来像是从数据库?但我不确定究竟是什么原因,再也没有专门针对djang-filer的论坛。

所以不确定下一步该在哪里开始解决问题。

该网站适用于较小的文件......

0 个答案:

没有答案