laravel file manager not showing uploaded image - laravel

I am new to laravel file manager and I'm developing a blog using tinymce5 and this package.
Everything works just fine. But...
The problem:
The problem is that none of the uploaded images are being shown. neither in file manager "when it's uploaded" nor in the blog.
image is not shown in file manager :
What I have done:
Well the problem is caused by the image url. The url is the url below:
http://localhost/storage/photos/maxresdefault.jpg
When I changed it to:
http://127.0.0.1:8000/storage/photos/maxresdefault.jpg
everything worked fine.
The Question is:
Is there any way to force laravel file manager to save image urls using "127.0.0.1:8000" instead of "localhost"?
Or is there any way to load images using a more efficient method?

Related

How to insert image into strapi article?

I'm beginner of strapi, nodejs headless cms framework.
I've followed quick start guide of official document. I've created gatsby-blog and it works.
After setup, I've created new article with uploaded image, in the middle of article. (Not the image field in the Slug section) In the strapi admin page, I can find my new image in the media library list.
But when I open my strapi client in browser, the image is not shown. The source of image seems to the file path of backend server. I can find the image file on the backend/public/uploads folder. But it returns 404 error.
So, What am I missing of strapi setting? I've searched a lot but I can't find similar issue.
Make sure that the field is public in your Strapi admin dashboard.
Beyond that, it seems like the src tag in your screenshot has a relative url - if you are not hosting the backend on the same path as the frontend, I would suspect you have to prepend the backend base path :-)

Image not found in laravel

My application is displaying images perfectly as I am displaying them on the other pages.
I need to apply a watermark on all of those images.
Whenever I try to get the image dynamically to manipulate it gives me the error 404 not found.
However, the link is similar to all other images displaying on the website.
I have tried Image intervention It works fine for the images in public/img folder
but id does not work for the images in the storage/app/products folder.
link:http://usm.gondalgroup.com/refurbished_tetra_pak_machines_supplier_home
working link obtained by inspecting image:http://usm.gondalgroup.com/storage/app/products/pRComIu5U3TkCSppb2PsjxtkcmgpFk4ZGbq4mbRt.jpeg
The link I made using controller and loop: http://usm.gondalgroup.com/storage/app/products/B6ITcW8iA4gyVKbqylw3qweGsqTLMjslIyyvIjes.jpeg

image is save in server but cannot be accessed laravel

I am using laravel file-manager to store image and it was working fine in http but after changing to https the image are not being displayed although they are being stored in public folder. Only image that are added recently have that problem old image are fine.
The error was in storage:link so after unlinking and then linking that it worked.

Laravel 5.8 - Uploaded images not showing on shared hosting

I've uploaded my Laravel site to shared hosting (I know....), the site has a image upload section which worked previously in my local set up.
The files do upload as expected but will not show in the view, I've looked everywhere for a solution so sorry if and answer is somewhere here already.
For example , this page http://www.navigatetheplanet.co.uk/blogs/England - the image at the top of the page was previously uploaded in local and is working as expected, but right at the bottom of the page there's a post with a image attached but return 404 ... from my investigations online it looks like it's something to do with the Symlink?
if you don't have ssh access then simply create a route.so you can hit this command simply by hitting url
Route::get('/storage/link', function() {
$command = 'storage:link';
$result = Artisan::call($command);
return Artisan::output();
})

using ckeditor in sailsjs but filebrowser is not working

I am using ckeditor latest version and full package in sailsjs. I am using file browse from server functionality.
//ckeditor/config.js
CKEDITOR.editorConfig = function( config ) {
config.filebrowserBrowseUrl = '/files';
};
There is many images in assets/files folder. When i click on browse server then one new tab is opening and url is http://example.com/files?CKEditor=ck&CKEditorFuncNum=1&langCode=en
But i am getting default not found screen. But if i access image from url like http://example.com/files/ok.png. I Can see it in browser. But if i request http://example.com/files . I need to see list of images from files folder. What i need is the following or something file browser.
The screen you provided shows CKFinder file manager, which can be easily integrated with CKEditor. CKFinder to work requires a server side connector - unfortunately, for now there's no connector for node.js.
You may find CKEditor File Browser API helpful, as it allows to integrate any other file browser. See this answer for a basic usage in sails.js.

Resources