From 3aa2cbcec70e187c0828ffbbc31d7464c1adba60 Mon Sep 17 00:00:00 2001 From: tabaczynski <97157431+tabaczynski@users.noreply.github.com> Date: Wed, 5 Jan 2022 11:50:47 +0100 Subject: [PATCH] Warning on file delivery Warning about the possible orphaned sessions added ( the file might not be delivered if a website was refreshed or navigated forward and backward) --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index c81d4f7..048046b 100644 --- a/index.js +++ b/index.js @@ -77,6 +77,9 @@ function poll(url, res) { // poll again setTimeout(function () { poll(url, res); }, 3000); } else { + // Jedrzej: It is possible that the client refreshed a browser window and will not be able to download the file + // Jedrzej: let's include this warning in the console + console.log("Please note that the file might not be downloaded whenthe client refreshed the website, or navigated forward and/or clicked back button "); // video processing is finished, let's redirect to the result url res.redirect(response.data.data.attributes.result_url); }