Url for same server but project outside disk #1907
Unanswered
lovecoding-git
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Laravel version: 7.6, Spatie Medialibrary version:8.2
I set two disks in my filesystem.
When I used disk1, it worked perfectly as I expected. // https://mywebsite.com/storage/1/file1.png
When I used disk2, image was saved in exact position as I expected. // /home2/storage/mywebsite/1/file1.png
How can I call /home2 disk image? Should I link it with some folder in public folder?
I tried to solve making my own callback.
Above code showed disk2's image perfectly.
And my call back worked perfectly with other file managers. (laravel-elfidner, unisharp-filemanager..)
But url was displayed urgly. //https://mywebsite.com/disk2?url=/home2/storage/mywebsite/1/file1.png
1.Spatie medialibrary does support this case?
2.Is there any better solution?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions