@rgeber It would be nice if you use the same upload form as in "files/templates/index.php"
https://github.com/owncloud/core/blob/master/apps/files/templates/index.php#L17-L39