Backport fix public upload button and progress bar

Backport to stable6

owncloud/core#6522

owncloud/core#6719