Modify ↓
Opened 19 years ago
Closed 19 years ago
#5083 closed defect (duplicate)
Uploading .png attachment causes error
| Reported by: | Owned by: | Jonas Borgström | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | ticket system | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description (last modified by )
If I upload a .png file in attachment, I get an error. However, .zip files work fine for some reason.
Traceback (most recent call last):
File "/usr/local/lib/python2.5/site-packages/trac/web/main.py", line 387, in dispatch_request
dispatcher.dispatch(req)
File "/usr/local/lib/python2.5/site-packages/trac/web/main.py", line 237, in dispatch
resp = chosen_handler.process_request(req)
File "/usr/local/lib/python2.5/site-packages/trac/attachment.py", line 361, in process_request
self._do_save(req, attachment)
File "/usr/local/lib/python2.5/site-packages/trac/attachment.py", line 450, in _do_save
size = upload.file.len
AttributeError: 'cStringIO.StringO' object has no attribute 'len'
Attachments (0)
Change History (4)
comment:1 by , 19 years ago
comment:2 by , 19 years ago
I just tried to upload a zip here and got an error too
Instructions:
- Take http://www.rpi.edu/~boberb/scriptsmall.zip
- Extract .png file
- Try uploading .png file
comment:3 by , 19 years ago
| Description: | modified (diff) |
|---|
comment:4 by , 19 years ago
| Resolution: | → duplicate |
|---|---|
| Status: | new → closed |
Probable duplicate of #4311.
Please search the ticket database before creating a new ticket.
Moreover do not forget to define which version of Trac you're using.
Note:
See TracTickets
for help on using tickets.



Traceback (most recent call last): File "/usr/local/lib/python2.5/site-packages/trac/web/main.py", line 387, in dispatch_request dispatcher.dispatch(req) File "/usr/local/lib/python2.5/site-packages/trac/web/main.py", line 237, in dispatch resp = chosen_handler.process_request(req) File "/usr/local/lib/python2.5/site-packages/trac/attachment.py", line 361, in process_request self._do_save(req, attachment) File "/usr/local/lib/python2.5/site-packages/trac/attachment.py", line 450, in _do_save size = upload.file.len AttributeError: 'cStringIO.StringO' object has no attribute 'len'