file - How to prevent the browser from canceling downloads from the same url -
i hope can me.
we have self written http server used proxy download logfiles other devices (which have httpservers).
we have webpage lists device. each device has own downloadbutton, link same url, different query params (e.g. /logfile.log?device=12345, /logfile.log?device=67890, ..."
the problem is, devices not respond immediately, collect data long time (e.g. 50 seconds) , send data.
my problem is, if user clicks on first button , on second, before first device sent data, download canceled browser. download window (where user can selects if wants open or save file) display first bytes received.
the query params ignored, browser seems think downloads same file , therefore skips previous download.
i think problem should same if want download database server needs time respond , try download same link. should skip first download?
i tried modify http proxy server responds head tells browser content-disposition file specific name downloaded, no bytes file right @ beginning. me hope was, sufficient trigger download window , stop browser canceling download. unfortunately doees not work.
if send random bytes, works expected, of course file not original one.
i tried use form submit button , post instead of href, doesn't work.
can give me hind, how fix it? of course fix in server, if there workaround on clientside, fine me.
thank in advance.
Comments
Post a Comment