Show More
@@ -357,6 +357,7 b' class FileContentsManager(ContentsManager):' | |||||
357 | if model['content'] is None: |
|
357 | if model['content'] is None: | |
358 | model['content'] = base64.encodestring(bcontent).decode('ascii') |
|
358 | model['content'] = base64.encodestring(bcontent).decode('ascii') | |
359 | model['format'] = 'base64' |
|
359 | model['format'] = 'base64' | |
|
360 | if model['format'] == 'base64': | |||
360 | default_mime = 'application/octet-stream' |
|
361 | default_mime = 'application/octet-stream' | |
361 |
|
362 | |||
362 | model['mimetype'] = mimetypes.guess_type(os_path)[0] or default_mime |
|
363 | model['mimetype'] = mimetypes.guess_type(os_path)[0] or default_mime |
General Comments 0
You need to be logged in to leave comments.
Login now