Git Product home page Git Product logo

Comments (7)

alexusmai avatar alexusmai commented on August 17, 2024

Hi.

Yes, there is such a problem. Images are connected as follows:

v-bind:src="image url"

How will free time I will think what can be done ..

If you need to separate, maybe you can use file manager without token authorization.. you can use pre-compiled version - see laravel-filemanager

from vue-laravel-file-manager.

lexdubyna avatar lexdubyna commented on August 17, 2024

May I suggest using https://www.npmjs.com/package/vue-auth-image ?

from vue-laravel-file-manager.

lexdubyna avatar lexdubyna commented on August 17, 2024

I can't get it running using published compiled and minimized js and css files. <div id="fm"></div> is empty and there are no errors in the console.

from vue-laravel-file-manager.

alexusmai avatar alexusmai commented on August 17, 2024

May I suggest using https://www.npmjs.com/package/vue-auth-image ?

I already read a little, and saw such packages. The approach is clear, I can do this. But!!! There are still audio and video files with streaming. The player is used - Plyr and there I did not find anything that will allow to transmit the headers ..

I will study the question, but I'm not sure that I will do it ..

I can't get it running using published compiled and minimized js and css files. <div id="fm"></div> is empty and there are no errors in the console.

Have you published the files?

php artisan vendor:publish --tag=fm-assets

in file-manager.php config add middleware - "web" (+ your middleware for auth)

'middleware' => ['web'],

view file example:

<!doctype html>
<html lang="{{ app()->getLocale() }}">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">

        <!-- CSRF Token -->
        <meta name="csrf-token" content="{{ csrf_token() }}">

        <title>Laravel</title>

        <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">
        <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.1/css/all.css">

        <link rel="stylesheet" href="{{ asset('vendor/file-manager/css/file-manager.css') }}">
    </head>
    <body>
    <div style="height: 600px;">
        <div id="fm"></div>
    </div>

    <script src="{{ asset('vendor/file-manager/js/file-manager.js') }}"></script>
    </body>
</html>

from vue-laravel-file-manager.

lexdubyna avatar lexdubyna commented on August 17, 2024

I did php artisan vendor:publish --tag=fm-assets.
The thing is that I'm using Laravel on a separate server as an API and my front-end app is Vue SPA (again on a separate server). I was trying to include all the scripts and styles from Laravel server in <head> when I initialize the component (using created hook) that uses file manager (with <div id="fm"></div> inside) but it doesn't seem to work.
Anyway, thank you for such a great tool! Even with the current functionality I am still going to use it)

from vue-laravel-file-manager.

Siarhei-Sudakou avatar Siarhei-Sudakou commented on August 17, 2024

I hame the same problem in Vue SPA. Images not show. Redirect to login route.

from vue-laravel-file-manager.

alexusmai avatar alexusmai commented on August 17, 2024

Can you test a new version of LFM? I added some functionality for view thumbnails and image preview if using "Authorization" header

from vue-laravel-file-manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.