Updated example to be more generic

Replaced the hard coded CSV converted from JSON with a form where the
data, filename and MIME type can all be chosen by the user.