correctly assign data type
Merge pull request #833 from simod/fix-upload-type

correctly assign data type