Skip to content

Preview doesnt show #893

Open
Open
@tugamars

Description

@tugamars

I have a standalone button (code below) and when i click it everything works as expected but after i select and confirm an image on the filemanager it self the input field is setted with the correct URL for the image but the preview part doesnt work. The with holder id doesnt even change src.

<a id="lfm" data-input="logo" data-folder="/teams/logos" data-preview="holder" class="btn btn-primary"> <i class="fa fa-picture-o"></i> Escolher </a>
<img id="holder" src="" style="margin-top:15px;max-height:100px;">

$('#lfm').filemanager('image', { folder: $(this).data('folder'), prefix: '<?php echo '/'.explode('/', env('APP_URL'), 4)[3] ?>/filemanager' });

I followed everything in the installation, integration and upgrade guides. Previously i had version 1.8 and everything worked fine.

P.S.: Found another 'bug', despite i have the 'folder' option it always opens in root/main folder.

  • Operating system : Linux
  • Laravel version : 6.18.0
  • Package version : 2.0
  • Steps to reproduce your issue : Select image with standalone button
  • Screenshots of browser console : http://prntscr.com/rdit7e

Metadata

Metadata

Assignees

No one assigned

    Labels

    docShould update documentation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions