在客户端下载后如何获取文件的路径 [英] how to get path of a file after downloading on client side

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

问题描述

在客户端下载文件时,如何获取该文件的路径?

while file is downloaded on client side then how to get the path of that file?

推荐答案

这取决于如何下载.通常,您没有机会在服务器端看到用户保存该文件的位置.感谢上帝.
但是,如果您创建一个插件/小程序,该插件/小程序自己从服务器上获取数据,则可以从您自己的代码中调用保存"对话框,这样您就可以看到文件的保存位置.但是这种方法有很大的局限性.而且我看不出您的目的是什么.
It depends on how it is downloaded. Normally you have no chance to see on server side where the user saved that file. Thanks God.
But if you create a plugin/applet that is fetching the data from the server on its own, you can call the "save" dialog from your own code, thus you will see where the file is saved. But this approach has considerable limitations. And I can''t see what is your purpose with it.


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

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