I'm working on a web app that once the user sets the file id that he's looking for the file would be sent. The problem that I'm facing is that the files are stored in a network drive and not in Flask's static folder. How can I make Flask be able to access these files and forward them to the user?
Once the user types the ID, a webservice pulls the file's path. Something like:
file:\\\\\server\folder1\folder2\folder3\file.txt
I've tried several ways of handling it, but none worked on the Flask environment. I always get the message that the file doesn't exist. Unit is mapped on Windows.
The structure is something like this
My computer
|
|---C:/folder1/flask folder
|
|
|---T:/folder with files to send