bugfix for upload
Merge pull request #18 from ChiSamurai/master

bugfix for upload