Menu

#349 Seperate setting for preview size for drop folder files

5.1.2
closed
feature-request
2018-03-09
2017-09-16
No

Hi Uwe,

what do you thing of a seperate preview image size for the drop folder menu? I personally would like to have here a ryally big preview to see as goog as possible what was put to the drop folder.
And maybe also a further preview could be shown in the new document form?
Assuming, that I have just put several fiels in the drop folder before I find the time to sit at my PC and create proper documents, I need that preview to see what was put to this folder.

BTW how to create ticket for 5.1.13?

Thank you.

Discussion

  • Marek Lerawski

    Marek Lerawski - 2017-09-30

    Hi again,

    I added a preview in class.AddDocument.php just using some lines of code from class.DropFolderChooser.php, only that I set a custom preview size of widht=600px to see the document details.

            $previewwidth = 600; // did not wotk with $this->params['...']; / Set to much bigger
            $timeout = 3; // did not wotk with $this->params['...'];
            $dir = $dropfolderdir.'/'.$user->getLogin();
            $previewer = new SeedDMS_Preview_Previewer($cachedir, $previewwidth, $timeout);
            $finfo = finfo_open(FILEINFO_MIME_TYPE);
            $mimetype = finfo_file($finfo, $dir.'/'.$dropfolderfile);
            $previewer->createRawPreview($dir.'/'.$dropfolderfile, 'dropfolder/', $mimetype);
            if($previewer->hasRawPreview($dir.'/'.$dropfolderfile, 'dropfolder/')) {
                $Mareks_Preview .= "<img filename=\"".$dropfolderfile."\" width=\"".($previewwidth)."\" src=\"../op/op.DropFolderPreview.php?filename=".$dropfolderfile."&width=".$previewwidth."\" title=\"".htmlspecialchars($mimetype)."\">";
            }
    

    And later on inserted $Mareks_Preview in the html part. Very usefull for me. Probably could be a part of next version? If yes, please with an own width setting!!!

     

    Last edit: Marek Lerawski 2017-09-30
  • Uwe Steinmann

    Uwe Steinmann - 2018-03-09
    • status: open --> closed
     
  • Uwe Steinmann

    Uwe Steinmann - 2018-03-09

    Had been fixed in 5.1.4 already

     

Log in to post a comment.

MongoDB Logo MongoDB