send_file using AJAX

Sudhi Kulkarni wrote:

I have a AJAX based form and when I use send_file there is no pop-up
that appears to prompt user to download file... how do I fix this?

Did you Google for that first? It's a FAQ in Ajax-land, because browsers have security constraints that prevent JavaScript from manipulating file input elements.

The answer is do old-fashioned Ajax that bypasses JavaScript. When a form's target field is the name of a 1-pixel <iframe> (and when it's not a remote_form_* and hence calls no JS), submitting the form will send its data into that <iframe>, and into your server without refreshing your page.

Google for that FAQ to learn how to update your page after the call, because I forget.