Opened 8 years ago

Closed 8 years ago

#4795 closed enhancement (fixed)

Upload files without file extensions

Reported by: roehricht@… Owned by: Blackhex
Priority: normal Component: DownloadsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11


It should be possible to upload files like "CHANGELOG" that have no proper file extensions, i.e. instead of renaming the file to CHANGELOG.txt.

Attachments (0)

Change History (4)

comment:1 Changed 8 years ago by dylanj

Has anyone had any luck with this yet?

comment:2 Changed 8 years ago by dylanj

Actually I found a solution but that takes away the extension filtering... Sorry i'm not really a python developer... but you can do this in the mean time : in the dist open the file and look for this section :

# Check correct file type.

reg = re.compile(r'(.*).(.*)$') result = reg.match(downloadfile?) self.log.debug('ext: %s' % ( if result:

if not in self.ext.split(' '):

raise TracError('Unsupported uploaded file type.')


raise TracError('Unsupported uploaded file type.')

Comment all of that out, then just reinstall it... simple solution:P

comment:3 Changed 8 years ago by Blackhex

  • Status changed from new to assigned

I'll add trac.ini opiton value none which will allow uploading of files with no extension. Just wait for it.

comment:4 Changed 8 years ago by Blackhex

  • Resolution set to fixed
  • Status changed from assigned to closed

Branch 0.11 and 0.12 now contains two new values of ext trac.ini option. They are none which allow to upload files without extension and all which disables file extension check.

Add Comment

Modify Ticket

as closed The owner will remain Blackhex.
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.