You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The browser's download menu & loading bar is only triggered by using <a href links, not by using js libs. The problem is that, in order to dl a dataset, we have to use js because we have to set the auth token, at minimum. So currently we dl the file with js as a blob and then create an hidden fake link from that blob into the dom, then we click it with js. It triggers the browser's dl menu BUT only when the blob is entirely downloaded, which can be very long with large files, leaving the user with almost nothing going on it's screen (apart from the spining cog), him wondering if there is a bug. That is our problem.
So, I see 2 solutions :
1. download bar in the left bar's "Jobs" when the blob dl takes more than, let's say, 5 seconds
2. unique temporary secured links :
from the UI, the user dl a file (zip, pdf, ...), using usual keycloak auth
the spring api responds with a temp url
random hash
short time validity
spring stores the url along with it's corresponding ressource real link
the UI creates a fake <a href with the provided link and auto clicks it
the spring api, catching the request on a non authenticated endpoind, responds with the real ressource
the browser dl menu is triggered
The text was updated successfully, but these errors were encountered:
The browser's download menu & loading bar is only triggered by using <a href links, not by using js libs. The problem is that, in order to dl a dataset, we have to use js because we have to set the auth token, at minimum. So currently we dl the file with js as a blob and then create an hidden fake link from that blob into the dom, then we click it with js. It triggers the browser's dl menu BUT only when the blob is entirely downloaded, which can be very long with large files, leaving the user with almost nothing going on it's screen (apart from the spining cog), him wondering if there is a bug. That is our problem.
So, I see 2 solutions :
1. download bar in the left bar's "Jobs" when the blob dl takes more than, let's say, 5 seconds
2. unique temporary secured links :
The text was updated successfully, but these errors were encountered: