Trapping downloads within Google Chrome

I’ve looked around and haven’t been able to find anything that will allow me to detect when a download is finished within Chrome.

The reason I want to do this is that I want to better “sort” my downloads once they are downloaded, automatically based on various criteria.

  • Download files like mega.co.nz
  • Error handling when downloading file from ASP.NET Web Handler (.ashx)
  • Node.js knox s3 image retrieval
  • How to tell if a file was really downloaded and saved, despite browser prefetch/cache?
  • PHP force download and refresh SOLUTION not working
  • How to download, zip and save multiple files with Javascript and get progress?
  • I’ve tried setting up a listener with: webRequest.onCompleted and while that seems to work for most resources (images, .ico, etc), I can’t get it to trap a .ZIP or .EXE file download. I’m not sure why it won’t, but it’ll work for other resources without a problem.

    I haven’t set a filter on it so it should (as far as I know) be pulling in all resources and checking them for the specified extensions. I know that might not be the best way to do check, but I haven’t found a better one yet.

    Looking at the experimental downloads API, that doesn’t seem to do what I want either as that mostly just initiates a download, which isn’t what I am trying to do.

    Thanks for any assistance!

  • How to stream AJAX output to a file download in Javascript?
  • Javascript: Download data to file from content within the page
  • Downloading large files with jQuery & iFrame - Need a File Ready event so I can hide the loading gif
  • How to download a file from server with a button click
  • How to download the current document's innerHTML as a file?
  • How to save an image with JavaScript?
  • One Solution collect form web for “Trapping downloads within Google Chrome”

    Haven’t seen an extension for this, but when you think about it this kind of makes sense. It almost seems like something that should be native to the browser…I guess it does give you the most recent downloads though and that is relevant to your current task. Anyways, thought I would mention that there is an experimental api that allows interaction with the native download interactions. This may be a reference needed in getting the extension cooking. Good luck

    Link to Experimental API:
    http://developer.chrome.com/extensions/experimental.downloads.html