Fix issue with duplicate filenames
The issue:
- Currently the solution reads files from the source folder or bucket. Now, the application itself reads all the files within that space in a recursive manner, but the issue is that it could be the case that 2 files have the exact same filename. The current solution considers that the filename should be unique to avoid duplicates, so that when the front-end requests an specific file the back-end knows exactly which file it should retrieve.
How to solve the problem?
The potential solution is to avoid the filenames as unique, and use the fileID instead. That way the back-end will send to the front-end a list of unique ids. Then the front-end will request that specific file via its unique ID.
Edited by Hugo Angulo