Use JS mimetype for /send
Handle extensions properly