mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 07:22:11 +00:00
fix creating preview images in drop folder
This commit is contained in:
parent
8c19c652b5
commit
e718520baa
|
@ -11,6 +11,7 @@
|
|||
- new seeddms logo
|
||||
- fix moving clipboard (Closes: #473)
|
||||
- show access rights of folder/document if user has write access
|
||||
- fix creating preview images of documents in drop folder
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Changes in version 5.1.16
|
||||
|
|
|
@ -48,6 +48,9 @@ $dir = $dropfolderdir.'/'.$user->getLogin();
|
|||
if(!file_exists($dir.'/'.$filename))
|
||||
exit;
|
||||
|
||||
$finfo = finfo_open(FILEINFO_MIME_TYPE);
|
||||
$mimetype = finfo_file($finfo, $dir.'/'.$filename);
|
||||
|
||||
if(!empty($_GET["width"]))
|
||||
$previewer = new SeedDMS_Preview_Previewer($settings->_cacheDir, $_GET["width"]);
|
||||
else
|
||||
|
@ -55,7 +58,7 @@ else
|
|||
$previewer->setConverters($settings->_converters['preview']);
|
||||
$previewer->setXsendfile($settings->_enableXsendfile);
|
||||
if(!$previewer->hasRawPreview($dir.'/'.$filename, 'dropfolder/'))
|
||||
$previewer->createRawPreview($dir.'/'.$filename, 'dropfolder/');
|
||||
$previewer->createRawPreview($dir.'/'.$filename, 'dropfolder/', $mimetype);
|
||||
header('Content-Type: image/png');
|
||||
$previewer->getRawPreview($dir.'/'.$filename, 'dropfolder/');
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user