Download-File-JS icon indicating copy to clipboard operation
Download-File-JS copied to clipboard

Is it possible to download the file depending on HTTP response code?

Open orlybg opened this issue 11 years ago • 1 comments
trafficstars

I have the case where I download a file from an API call (it gets generated on the fly) but first I need to check if there's actually data for the filters I apply and send in the API request.

Is this possible with Download-File-JS?

Some more details on this: http://stackoverflow.com/questions/22649087/download-file-using-jquery-from-an-api

orlybg avatar Apr 02 '14 16:04 orlybg

No, DownloadJS is a simple piece of code, it is not possible however I have nothing against adding some new features. Just drop some considerations how API should look like.

PixelsCommander avatar Jun 10 '14 19:06 PixelsCommander