fix previews in shared folders
implement previews for public upload
Merge pull request #4950 from owncloud/fix_preview_shared_folder

Fix preview for shared folder and public upload