file2url and mime_type file extension