backport #6290 to stable5
restore trashbin download.php
Merge pull request #8298 from owncloud/backport_6290_to_stable5

Backport #6290 to stable5