Repair browser compatibility issue

Not all browsers append file.type. It happens to be something nobody
needs anyway. Easy fix!