Allow csv upload

Addresses #1239