allow upload of JSON as well