I need to download CSV file inside ajax call.
I can access my ajax request in Laravel controller. And I can get the response of file contents as well in the success function of my ajax call.
But the file is not being downloaded.
laravel controller code :
My ajax call
Inside the success function of my ajax call, I can console log and get the file contents. But I need to download the file which is not being downloaded.
Thanks in advance.
View on Stack Overflow
