Fetching dynamic data from public folder #10434
Unanswered
niels-van-den-broeck
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I have kind of a quirky use case. I am building an application for a client which wants to provide files trough docker volume mounting.
I was wondering if I would somehow be able to fetch these files in my server side code if they are provided to a directory in the public folder.
The app is built using docker and only the build directory is kept pretty much to run the application in order to make the resulting image as lean as possible.
the volume from my client is mounted to
/build/client/data
which works for the images the application needs in the frontend.However, a separate file is provided in this directory in csv format which needs to be parsed by the backend.
Is there any way I can retrieve this file in my backend code by any chance?
(Yes I am aware I am trying to fetch a file from my frontend to my backend which feels kind of backwards)
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions