Development FlazHost
Development FlazHost

Reputation: 329

Laravel Asset Exists But Returning 404 Not Found

I got problem when accessing public asset on Laravel. I copy and paste an image (app.png) to (app_baru.png) on a same directory (app/public/fe/eduzone/images/). But the new asset is return 404 when being acessed on web browser, meanwhile the old asset is shown normally.

Here is my file permission:

enter image description here

Here is my file shown on web browser: enter image description here

I've confirm that my storage is pointed to another directory, not to public directory: enter image description here

I also have done some php artisan command like:

php artisan optimize:clear
php artisan config:clear
php artisan view:clear
php artisan cache:clear

But the asset still not snown on browser.

Please help

Upvotes: 0

Views: 2476

Answers (2)

Maik Lowrey
Maik Lowrey

Reputation: 17594

Try to change the imagename in the storage (in your case media) folder and not in the public folder.

Upvotes: 0

Alie
Alie

Reputation: 51

Linux is Case Sensitive, try uppercase extention. "app_baru.PNG" See your file name extention.

Upvotes: 1

Related Questions