Skip to content
Advertisement

Tag: static-files

FastAPI serving static files through symlinks

I have mounted the static directory in my FastAPI app using the following code: If I have a symlink pointing to a path outside the app folder, e.g. The FastAPI application can recognize the URL xyz.com/public/index.html, but it can’t recognize xyz.com/public/data. Is this doable? Unfortunately, I cannot use FileResponse due to the blob size being too large. I want to

Advertisement