{"json_modified": "2016-10-16T02:25:57.061996", "uuid": "03b75230-4451-4e95-adbc-98183ce568fb", "title": "Downloading Files", "url": "/en-US/docs/Mozilla/Add-ons/Code_snippets/Downloading_Files", "tags": ["Code snippets"], "translations": [{"uuid": "60c29dab-0b00-4b73-bf9d-487af9f9129e", "title": "Download Observer", "url": "/ja/docs/Code_snippets/Download_Observer", "tags": ["NeedsContent"], "summary": "Firefox \u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u7528\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u76e3\u8996\u30b5\u30f3\u30d7\u30eb", "localization_tags": [], "locale": "ja", "last_edit": "2013-06-23T07:02:45", "review_tags": []}, {"uuid": "27156a59-5532-4b6a-a7a5-ae33f5571598", "title": "Obserwator pobierania danych", "url": "/pl/docs/Fragmenty_kodu/Obserwator_pobierania_danych", "tags": [], "summary": "Przyk\u0142ad obserwatora pobierania danych dla mened\u017cera pobierania plik\u00f3w Firefoksa:", "localization_tags": [], "locale": "pl", "last_edit": "2013-06-23T07:02:03", "review_tags": []}], "modified": "2016-10-16T02:25:57", "label": "Downloading Files", "localization_tags": [], "locale": "en-US", "id": 9345, "last_edit": "2016-10-16T02:25:54", "summary": "To download a file, create an instance of nsIWebBrowserPersist
and call its nsIWebBrowserPersist.saveURI()
method, passing it a URL to download and an nsIFile
instance representing the local file name/path.", "sections": [{"id": "Downloading_files", "title": "Downloading files"}, {"id": "Downloading_Binary_Files_with_a_Progress_Listener", "title": "Downloading Binary Files with a Progress Listener"}, {"id": "Downloading_files_that_require_credentials", "title": "Downloading files that require credentials"}, {"id": "Downloading_Images", "title": "Downloading Images"}, {"id": "See_also", "title": "See also"}], "slug": "Mozilla/Add-ons/Code_snippets/Downloading_Files", "review_tags": []}