Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with images thumb (and image itself) displaying after upload #793

Closed
sergmsr opened this issue May 21, 2019 · 1 comment
Closed

Comments

@sergmsr
Copy link

sergmsr commented May 21, 2019

version installed: unisharp/laravel-filemanager dev-master 5635aaa
env: windows 8 64 bit
address: localhost:8000
integrated with ckeditor 4.6.2

after uploading file I'm getting urls like this:

which leads to broken images, as there is no protocol specified.

is there any way to avoid adding domain (and port) to address and use relative paths instead?

http://localhost/laravel-filemanager/jsonitems?working_dir=&type=Images&sort_type=alphabetic&_=1558424310756
returns same:
10:38:31.392 XHRGEThttp://localhost/laravel-filemanager/jsonitems?working_dir=&type=Images&sort_type=alphabetic&_=1558424310756
[HTTP/1.1 200 OK 146ms]

{"items":[{"name":"150_0.jpg","url":"localhost/storage/photos/1/150_0.jpg","time":1558423450,"icon":"fa-image","is_file":true,"is_image":true,"thumb_url":"localhost/storage/photos/1/thumbs/150_0.jpg"}],"display":"list","working_dir":"/1"}

@streamtw
Copy link
Member

Sorry for late reply. Example code for getting relative urls, and explanations about why the full urls are returned can be found in #1233 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants