I need to download 4 png files to my angular web app and each of them < 2 MB.
I originally wanted to do the static file mapping but I keep having CORS issue so I created the work around in my flask:
@app.route("/PBR/<path:file>") def pbrFolder(file): return send_from_directory("/home/path/pbr/", file, mimetype="image/png")
But now the problem is that the files are taking forever to be downloaded, sometimes taking more than 20 secs.
Is there a way that I can download the files in faster speed?
https://i.ibb.co/R4mW47f/Screenshot-2023-09-15-at-9-09-29-PM.png