hi so I am receiving a txt file from my html page running on the flask server.
file = request.files['file']
Now my database has following structure : unique_id, name, l1, l2, l3, tag_id, here l1, l2 and l3 form the path to where I want to save the received file. the path goes like this : 'D:\l1\l2\l3'. For saving the file I am using this statement:
destination_path = os.path.join('D:\\',level1, level2, level3)
file.save(os.path.join(destination_path, file.filename))
but I am not seeing the file at that location, what can be its cause?
Full code is at:
https://github.com/Amritanshu-Shandilya/Resource_Server/blob/main/resource_server.py