Comments (7)
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.
May I suggest using https://www.npmjs.com/package/vue-auth-image ?
from vue-laravel-file-manager.
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.
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.
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.
I hame the same problem in Vue SPA. Images not show. Redirect to login route.
from vue-laravel-file-manager.
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)
- Hello, when I install the component, import component error as shown in figure HOT 2
- How to run? HOT 2
- ERROR Failed to compile with 1 error 下午6:05:15 error in ./node_modules/vue-loading-spinner/src/components/Texture.vue?vue&type=style&index=0&id=3d9bd062&lang=scss&scoped=true& Syntax Error: TypeError: this.getOptions is not a function HOT 2
- sos,vue2 error HOT 2
- sos error HOT 3
- Set default disk and path on init or any oninit callback ? HOT 1
- Please provide a store!! HOT 1
- Problem with LFM and tinymce HOT 2
- Buffer undefined in Preview.vue HOT 2
- The requested module '/node_modules/diff-match-patch/index.js?v=1f9f0c93' does not provide an export named 'default' HOT 3
- Multiple fm in Vuex store
- Cannot compile with webpack
- Syntax Error: SassError: Undefined function. HOT 2
- Settings is not working. HOT 3
- Integration issue with Vite+VUE3 (pinia)
- This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2.
- Dynamic configuration
- please add cooke for resent opened folder
- Image source not readable
- Vue3 settings not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-laravel-file-manager.