move files to owners trash

Copy files to the trash of the user who deleted the file and to the owners trash in case of a shared file.

fix #5283