Basically I have a Flask server that executes some commands using Selenium when it receives a certain POST request. Among them, downloading files in the browser. The problem is that I can't capture the name of the downloaded file to control that file. There are other ways to capture the file, like getting the last modified file in the folder. But imagine that, being a server, a high amount of requests would make this terrible.
Is there any way to control these downloaded files? Remembering that each request generates one and only one downloaded file, which belongs to that user's request