atton53's avatar

I can not access files form public folder (VILT Stack)

I am using Spatie's Media Library. The uploading process is correct, and I can get the media URL using this function:

$companyLogo = $jobDetail->getFirstMediaUrl('companyLogo');

However, when I visit the image URL, it says "object not found."

How can I solve this issue?

  • File permissions are correct.
  • The symlink is set up properly.
  • The file is uploaded.
  • I can retrieve its URL.

But it is not displaying in the browser.

0 likes
3 replies
vincent15000's avatar

Some questions :

  • is the problem locally on your computer or in production ?

  • can you show the URL and how you are using the URL to display the image ?

1 like
atton53's avatar
atton53
OP
Best Answer
Level 3

Thanks for your respond @vincent15000

I got the solution vince....

The problem was in url, so i just changed the app url from localhost to localhost:8000 on it's running port, and it got fixed

1 like

Please or to participate in this conversation.