Download file #414
Unanswered
pavelwitassek
asked this question in
Support
Replies: 1 comment
-
Hi, I'm afraid Naja can't help you with that because it wasn't designed for that kind of use case. I don't think downloads via AJAX are a good idea in general. It's better to redirect to the download URL (or open it in a new window) and let the browser handle the download (and the UI). If you insist on an async download, you can use plain |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are developing application with Nette and need we need to download file via AJAX, is possible to use standard ajax class and use Naja to this use case?
In some cases we need to show flash message via JS after file is downloaded, so it would be nice to support:
naja.makeRequest(...).then(showMessage(...))
Beta Was this translation helpful? Give feedback.
All reactions