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
I have a form where user choose to download (or send to email) a subset of financial statement documents.
If user choose send to email, everything is fine, but if he picks download, then no file is downloaded (without ajax, file is downloaded successfully).
If I modify form signal to use redirect where I use the same way i did in the form signal (sending FileResponse), then it allows me to download that file, but spinner stops spinning due to window.location.href in redirect extension. I have experimented and figured out that using window.open() will keep spinner (and all gif animatins) unharmed, but browser's anti-popups alert shows up.
Any ideas for a workaround? I simply need a file download request from within a form with a spinner spinning for each request until requested file is downloaded.
The text was updated successfully, but these errors were encountered:
If I get it right, it's redirect extension that makes trouble to you, right? What about disabling it for that given request with data-ajax-off/settings.off?
When sending new FileResponse( ... ) from nette, instead of forcing the download of the file, it sends the file represented as a string (see http://prntscr.com/9azo8u).
I have a form where user choose to download (or send to email) a subset of financial statement documents.
If user choose send to email, everything is fine, but if he picks download, then no file is downloaded (without ajax, file is downloaded successfully).
If I modify form signal to use redirect where I use the same way i did in the form signal (sending FileResponse), then it allows me to download that file, but spinner stops spinning due to
window.location.href
in redirect extension. I have experimented and figured out that usingwindow.open()
will keep spinner (and all gif animatins) unharmed, but browser's anti-popups alert shows up.Any ideas for a workaround? I simply need a file download request from within a form with a spinner spinning for each request until requested file is downloaded.
The text was updated successfully, but these errors were encountered: