two fixes for upload-file feature

- content-type "None" does not exist.
- set the title to filename if blank correctly