Is there a simple way to get the name of the last file downloaded from a xul app for firefox?
I want to get this file and post it to a url of my choice
You can use the Downloads.jsm JavaScript code module
You need to import the module with:
Components.utils.import("resource://gre/modules/Downloads.jsm");
You can then obtain the download list:
var list = Downloads.getList(Downloads.ALL);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.