Edgewall Software

Opened 17 years ago

Last modified 16 years ago

#6485 closed defect

I can't upload the file in the trac — at Version 1

Reported by: dingliu@… Owned by: Christian Boos
Priority: highest Milestone:
Component: attachment Version:
Severity: major Keywords: needinfo
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christian Boos)

I can't upload the file in the trac this is Python Traceback

Traceback (most recent call last):
  File "E:\SUBVERSION\trac-0.1.1\python\Lib\site-packages\trac\web\main.py", line 406, in dispatch_request
    dispatcher.dispatch(req)
  File "E:\SUBVERSION\trac-0.1.1\python\Lib\site-packages\trac\web\main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "E:\SUBVERSION\trac-0.1.1\python\Lib\site-packages\trac\attachment.py", line 361, in process_request
    self._do_save(req, attachment)
  File "E:\SUBVERSION\trac-0.1.1\python\Lib\site-packages\trac\attachment.py", line 496, in _do_save
    attachment.insert(filename, upload.file, size)
  File "E:\SUBVERSION\trac-0.1.1\python\Lib\site-packages\trac\attachment.py", line 183, in insert
    filename))
  File "E:\SUBVERSION\trac-0.1.1\python\Lib\site-packages\trac\util\__init__.py", line 112, in create_unique_file
    raise Exception('Failed to create unique name: ' + path)
Exception: Failed to create unique name: E:\SUBVERSION\trac-0.1.1\trac_repo\projects\prj0006\attachments\ticket\10\%E5%87%BA%E6%9D%A5%E9%AB%98%EF%BC%88%E5%8D%98%E4%BD%8D%E6%99%82%E9%96%93%EF%BC%89%E3%81%AE%E7%94%9F%E7%94%A3%E6%9E%9A%E6%95%B0%E5%A4%89%E3%81%AA%E7%94%BB%E9%9D%A2%EF%BC%88%E7%94%9F%E7%94%A3%E3%83%A9%E3%82%A4%E3%83%B3%EF%BC%89%E3%83%95%E3%83%AD%E3%82%A2%E3%83%BC.100.GIF

Change History (1)

comment:1 by Christian Boos, 17 years ago

Component: generalattachment
Description: modified (diff)
Keywords: needinfo added
Milestone: 0.10.5
Owner: changed from Jonas Borgström to Christian Boos

<long file name>.100.GIF: that's happening when all the attempts to create an attachment have failed.

Can you please show us the content and permissions of that E:\SUBVERSION\trac-0.1.1\trac_repo\projects\prj0006\attachments\ticket\10 folder?

Also please mention in the Version field the release of Trac you're using (trac-0.1.1 is not exactly referring to an existing released version…)

Note: See TracTickets for help on using tickets.