Modify ↓
Opened 17 years ago
Closed 16 years ago
#5211 closed enhancement (fixed)
RFE: Limit maximal file size of uploaded file.
| Reported by: | Radek Bartoň | Owned by: | anonymous |
|---|---|---|---|
| Priority: | normal | Component: | DownloadsPlugin |
| Severity: | minor | Keywords: | |
| Cc: | Trac Release: | 0.11 |
Description
There should be max_size trac.ini option that will limit filesize of uploaded file.
Attachments (0)
Change History (4)
comment:1 Changed 16 years ago by
comment:2 Changed 16 years ago by
| Owner: | changed from Radek Bartoň to anonymous |
|---|---|
| Status: | new → assigned |
Currently it isn't limited. What is the error you are getting?
comment:3 Changed 16 years ago by
Trac debug log (after click "Add" button for upload exe-file with 442Mb size):
2009-08-14 22:49:57,608 Trac[main] DEBUG: Dispatching <Request "POST u'/downloads'">
2009-08-14 22:49:57,655 Trac[session] DEBUG: Retrieving session for ID u<UserName>
2009-08-14 22:49:57,655 Trac[main] ERROR: Internal Server Error:
Traceback (most recent call last):
File "c:\python\lib\site-packages\Trac-0.11.4-py2.5.egg\trac\web\main.py", line 435, in _dispatch_request
dispatcher.dispatch(req)
File "c:\python\lib\site-packages\Trac-0.11.4-py2.5.egg\trac\web\main.py", line 175, in dispatch
chosen_handler)
File "c:\python\lib\site-packages\Trac-0.11.4-py2.5.egg\trac\web\main.py", line 298, in _pre_process_request
chosen_handler = filter_.pre_process_request(req, chosen_handler)
File "build\bdist.win32\egg\tracdiscussion\wiki.py", line 105, in pre_process_request
action = req.args.get('discussion_action')
File "c:\python\lib\site-packages\Trac-0.11.4-py2.5.egg\trac\web\api.py", line 194, in __getattr__
value = self.callbacks[name](self)
File "c:\python\lib\site-packages\Trac-0.11.4-py2.5.egg\trac\web\api.py", line 475, in _parse_args
fs = cgi.FieldStorage(fp, environ=self.environ, keep_blank_values=True)
File "C:\Python\Lib\cgi.py", line 534, in __init__
self.read_multi(environ, keep_blank_values, strict_parsing)
File "C:\Python\Lib\cgi.py", line 657, in read_multi
headers = rfc822.Message(self.fp)
File "C:\Python\Lib\rfc822.py", line 104, in __init__
self.readheaders()
File "C:\Python\Lib\rfc822.py", line 151, in readheaders
line = self.fp.readline()
File "c:\python\lib\site-packages\Trac-0.11.4-py2.5.egg\trac\web\modpython_frontend.py", line 50, in readline
return self.req.readline(size)
MemoryError:
2009-08-14 22:49:57,671 Trac[perm] DEBUG: No policy allowed <UserName> performing TRAC_ADMIN on None
2009-08-14 22:49:57,671 Trac[chrome] DEBUG: Prepare chrome data for request
2009-08-14 22:49:57,671 Trac[perm] DEBUG: No policy allowed <UserName> performing PERMISSION_GRANT on None
2009-08-14 22:49:57,671 Trac[perm] DEBUG: No policy allowed <UserName> performing PERMISSION_REVOKE on None
2009-08-14 22:49:57,671 Trac[perm] DEBUG: No policy allowed <UserName> performing TICKET_ADMIN on None
2009-08-14 22:49:57,671 Trac[perm] DEBUG: No policy allowed <UserName> performing WIKI_ADMIN on None
2009-08-14 22:49:57,671 Trac[perm] DEBUG: No policy allowed <UserName> performing DOWNLOADS_ADMIN on None
2009-08-14 22:49:57,671 Trac[perm] DEBUG: No policy allowed <UserName> performing SPAM_CONFIG on None
2009-08-14 22:49:57,671 Trac[perm] DEBUG: No policy allowed <UserName> performing SPAM_MONITOR on None
2009-08-14 22:49:57,671 Trac[perm] DEBUG: No policy allowed <UserName> performing DISCUSSION_ADMIN on None
2009-08-14 22:49:57,671 Trac[perm] DEBUG: No policy allowed <UserName> performing EMAIL_VIEW on None
2009-08-14 22:49:57,765 Trac[main] DEBUG: 459 unreachable objects found.
comment:4 Changed 16 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Implemented with changeset r7898.
Note: See
TracTickets for help on using
tickets.



What is maximal size of uploaded files now? I can't upload zip-archive with 450Mb size.