fix for unchunked upload
fixed error in last bugfix
Merge pull request #204 from paczian/master

bugfix for unchunked upload