fixes #5367
Merge pull request #5402 from owncloud/fixing-5367-master

fixes chunked upload