laravelunisharp-file-manager

Laravel file manager says [ object object ] when trying to upload the image to the server


I am using a laravel file manager for uploading an images to the server. In local everything works file but when in the server it always shows [ object object ] with blank images. But it gets uploaded.

Also, there was a warning message showing "required imgick or gd extension"

laravel file manager

code

<div class="input-group">
                                            <span class="input-group-btn">
                                                <a id="image" data-input="thumbnail" data-preview="holder"
                                                    class="btn btn-primary">
                                                    <i class="fa fa-picture-o"></i> Choose
                                                </a>
                                            </span>
                                            <input id="thumbnail" class="form-control" type="text" name="thumbnail_image">
                                        </div>
$('#image').filemanager('image');

Solution

  • To enable gd extension check this: Enabling/installing GD extension? --without-gd

    If Error still persists: Check lfm.php in /config and check size configuration.

    Also Try changing php upload size and post size.

    You should be able to check errors for this in dev tools.