Extension and content type problems solved on uploads

Extension and content type problems solved on uploads. It fixes the
url conversion problem. (Thanks to filepicker help answering emails. Just kidding...)