Description

if you view the attachment and just click on the upload button without selecting a file, then you can raise an TypeError "object of type 'NoneType' has no len()"

Steps to reproduce

  1. view attachment
  2. click "Upload" new attachment without selecting anything
  3. you receive an TypeError

Example

Component selection

Details

MoinMoin Version

this wiki 1.8.2

OS and Version

Python Version

Server Setup

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

Workaround

Discussion

it would be better if an error message says that no files are uploaded or selected... whatever but not a pyton error

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/UploadNoAttachmentRaiseTypeError (last edited 2009-03-14 16:45:29 by ThomasWaldmann)