如何在客户端保存文件 [英] How to save file in client side

查看:70
本文介绍了如何在客户端保存文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我必须将一个表从mysql数据库导出到.csv格式并将其存储在客户机中。

根据文本框中给出的用户路径。但是我的代码将文件保存在服务器端而不是客户端机器中。请任何机构知道如何在客户端保存文件。



谢谢

parithi

Hi all,

I have to export a table from mysql database to .csv format and store it in Client machine.
As per user path given in the textbox. but my code save the file in server side not in client machine. please any body know how to save the file at client side.

Thanks
parithi

推荐答案

您无法写入客户端的硬盘。您需要将响应写入客户端的浏览器,该响应将要求用户保存csv文件。这取决于客户保存或取消它。





- Amit
You cannot write to client''s hard disk. You need to write the response to the client''s browser which will ask the user to save the csv file. It depends upon client to save it or cancel it.


--Amit


这篇关于如何在客户端保存文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆