Hi, so sorry i give a suggestion but not at possible solution.
You need a file extension to get the path and file name.
See this extension:
I think with this extension you can read csv file and store on tinydb
Please, tell me if this work. I don’t test.