fix for upload of data. autodetection data vs file is ugly.
Merge pull request #112 from wgerlach/master

fix for upload of data. autodetection data vs file is ugly.