Changeset 49370
- Timestamp:
- 10/05/06 16:09:47 (3 years ago)
- Files:
-
- CPS3/products/CPSDocument/trunk/CHANGES (modified) (1 diff)
- CPS3/products/CPSDocument/trunk/createFile.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
CPS3/products/CPSDocument/trunk/CHANGES
r49296 r49370 7 7 Bug fixes 8 8 ~~~~~~~~~ 9 - 9 - made the createFile (ZIP uploader) more robust to files with buggy suffixes 10 10 New internal features 11 11 ~~~~~~~~~~~~~~~~~~~~~ CPS3/products/CPSDocument/trunk/createFile.py
r46766 r49370 75 75 # Acquiring only the filename (without the directory path) 76 76 path_filename = generateFileName(path.split('/')[-1]) 77 mimetype = registry.lookupExtension(path_filename.lower()).normalized() 77 78 mimetype = registry.lookupExtension(path_filename.lower()) 79 if mimetype is not None: 80 mimetype = mimetype.normalized() 81 else: 82 mimetype = 'application/octet-stream' 83 78 84 if mimetype.startswith('image/'): 79 85 ptype = 'Image'
