Hi,
I have a route to serve files from the private storage. See attached image.
I use this root inside the bootstrap fileinput in the frontend. See attached image.
It works on my machine 😎 .
If I deploy the app to the webserver, everything is still working, except the preview and I get the errormessage in the console and fileinputpreview:
The requested URL /serveFile/claim_74_669645b2ea1c3.pdf was not found on this server.
The file is existing in the private storage, but the code doesn't reach this point.
I activated the debugbar and tried to get some debugmessages or even throw an exception at the entrypoint of this route.
Again, it works on my machine, but on the webserver it seems like the call doesn't reach the method from the controller.
I checked the routes, but it is registered. See image.
At this point I don't know enough about laravel and at which point the webserver, some middleware or something else is intercepting this call.
Can someone give me some advice for debugging this problem?