© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
F
Filament
•
3y ago
•
3 replies
hayvern
FileUpload preview gets 404 error
Hello
.
I
'm using FileUpload in one of my resource pages
. I can upload it successfully and the file is viewable on my local development machine
.
I
've set the
s
t
o
r
a
g
e
:link path to app
/public
.
When reloading the resource page
, it recognizes that a file was uploaded
.
However
, clicking on the file
(I
've set as openable
(
)
) it gives me a URL that returns 404
. The URL generated is
:
http://localhost:8000/admin/storage/company/TT-2024-0003/media/custom_prefix-buildnmaintain.jpg
This is working
:
http://localhost:8000/storage/company/TT-2024-0003/media/custom_prefix-buildnmaintain.jpg
The issue is
'
/admin
' segment
. Without it the file is viewable
. Need help to be pointed in the right direction on how to configure this correctly
.
Note
: I
'm using Jetstream with Laravel
. I
'm on Filament v3
.1
.25
.
Solution
I fixed the issue by removing the
'
/admin
' that was included into my
.env for for APP
_URL
.
So the value now reads as
: APP
_URL
=
http://localhost:8000
Jump to solution
Filament
Join
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Was this page helpful?
Yes
No
Similar Threads
Recent Announcements
Similar Threads
Error FileUpload Preview
F
Filament / ❓┊help
2y ago
FileUpload custom preview.
F
Filament / ❓┊help
2y ago
FileUpload forbidden on preview
F
Filament / ❓┊help
6mo ago
Custom preview for FileUpload
F
Filament / ❓┊help
2y ago