以编程方式确定文件下载的状态

编程入门 行业动态 更新时间:2024-10-23 20:30:45
本文介绍了以编程方式确定文件下载的状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

有没有办法可以通过编程方式确定Chrome或Mozilla Firefox中的下载状态?我想知道下载是否中止或成功完成。

Is there a way I can programmatically determine the status of a download in Chrome or Mozilla Firefox? I would like to know if the download was aborted or completed successfully.

为了编写代码,我将使用Perl,PHP或Python。

For writing the code I'd be using either Perl, PHP or Python.

请帮忙。 谢谢。

Please help. Thank You.

推荐答案

我不知道Chrome,但Firefox的最新版本保持下载记录 SQLite 数据库(您的个人资料目录中的downloads.sqlite)。我不知道在下载是否正在进行中是否更新,但是一旦下载完成/中止,它应该会告诉您状态。

I don't know about Chrome, but recent versions of Firefox keep the download records in a SQLite database (downloads.sqlite in your profile directory). I'm not sure if that gets updated while the download is in progress, but it should tell you the status once the download is complete/aborted.

更多推荐

以编程方式确定文件下载的状态

本文发布于:2023-11-24 08:56:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1624556.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:状态   方式   文件

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!