2010-06-29 02:48
浏览 217


I have a php script that will generate zip file.

header("Content-type: application/octet-stream");
header("Content-disposition: attachment;");
echo $zipfile->file();

The filename is random and the server script doesn't even come with a return-file-uri function.

So my question is that how jQuery can handle this output (echo $zipfile->file()) so that I can download the zip file in the usual way?

Any help would be appreciated.



  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • doushangan3690 2010-06-29 03:07

    jQuery doesn't handle downloads. Just point the browser to it directly.

    点赞 评论

相关推荐 更多相似问题