Send correct path on file upload when using public app

Fix issue #7152
Merge pull request #7168 from owncloud/issue/7152

Send correct path on file upload when using public app