fixes for upload-file

- content-type "None" does not exist.
- set the title to filename if blank correctly
Merge pull request #26 from darinkes/master

two fixes for upload-file feature