server/apps/files_trashbin
Morris Jobke f56ae37e8f
Opening the trashbin causes errors in log for files without preview
* put a file without a generated preview in the trashbin
  (e.g. a *.docx file)
* open the trashbin
* following errors will show up in the nextcloud.log:
	- filesize(): stat failed for ...
	- fopen(...): failed to open stream: No such file or directory at ...
	- fread() expects parameter 1 to be resource, boolean given at ...
	- fclose() expects parameter 1 to be resource, boolean given at ...
	- imagecreatefromstring(): Empty string or invalid image at ...

This is because the preview code tries to load an SVG image, which
is obviously only text.

The fix simply handles this before the loading happens and the web UI
keeps showing the default mimetype icon.
2016-09-09 13:53:06 +02:00
..
ajax Opening the trashbin causes errors in log for files without preview 2016-09-09 13:53:06 +02:00
appinfo Add occ command to expire the trashbin (#25878) 2016-08-29 14:30:40 +02:00
css Revert "Revert "Move trashbin specific CSS that modifies sidebar"" 2015-10-12 16:21:27 +02:00
img Add viewBox to app icons 2016-08-17 15:23:51 +02:00
js Fix trashed file name corruption when rerendering trashbin list 2016-06-23 11:51:23 +02:00
l10n [tx-robot] updated from transifex 2016-09-07 00:09:25 +00:00
lib Add occ command to expire the trashbin (#25878) 2016-08-29 14:30:40 +02:00
templates Make more action icons themable + style fixes 2016-02-25 23:01:07 +01:00
tests Fix getMock files_trashbin 2016-09-06 09:29:27 +02:00
list.php Fix apps/ 2016-07-21 18:13:57 +02:00