file download not working #977
-
I can't seem to get the download link to work. when i click on the button to download the file, i only get a javascript alert with weird characters in the body. In my ajax handler i'm using Response::download(pathtofile) and in my markup i have this:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
AJAX handlers need to return a redirect to a controller that returns the download AFAIK, direct download over AJAX isn't natively supported by browsers I believe; at least the last time I checked it wasn't. Also where are you getting the |
Beta Was this translation helpful? Give feedback.
AJAX handlers need to return a redirect to a controller that returns the download AFAIK, direct download over AJAX isn't natively supported by browsers I believe; at least the last time I checked it wasn't. Also where are you getting the
data-request-download
attribute from?