send file name to server

Fall back to a generic Content-Type if it's an empty string.
Fixes an