{"json_modified": "2016-07-01T09:44:37.937843", "uuid": "bede9daa-1357-4300-895a-393e22a2cf6a", "title": "Using the DOM File API in chrome code", "url": "/en-US/docs/Extensions/Using_the_DOM_File_API_in_chrome_code", "tags": ["File I/O", "API", "Files", "Guide", "Extensions", "DOM"], "translations": [{"uuid": "3ce8a0d8-420a-409f-b0e8-c1871882661d", "title": "DOM File API \u3092 chrome code\u3000\u3067\u4f7f\u3046", "url": "/ja/docs/Extensions/Using_the_DOM_File_API_in_chrome_code", "tags": [], "summary": "DOM\u00a0File API \u3092 chrome code \u3067\u4f7f\u3044\u305f\u3051\u308c\u3070\u3001 \u5236\u9650\u306a\u3057\u306b\u305d\u3046\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u5b9f\u969b\u306b\u3001 \u304a\u307e\u3051\u306e\u6a5f\u80fd\u3092\u4e00\u3064\u5f97\u307e\u3059: \u30e6\u30fc\u30b6\u30fc\u306e\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u306e\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u30d1\u30b9\u3092\u6307\u5b9a\u3057\u3066 File \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u3053\u308c\u306f\u3001\u7279\u6a29\u306e\u3042\u308b\u30b3\u30fc\u30c9\u3067\u306e\u307f\u52d5\u304d\u307e\u3059\u3002 \u305d\u306e\u305f\u3081\u3001\u30a6\u30a8\u30c3\u30d6\u30b3\u30f3\u30c6\u30f3\u30c4\u3067\u306f\u52d5\u304d\u307e\u305b\u3093\u3002 \u3053\u308c\u306f\u3001\u30a6\u30a8\u30c3\u30d6\u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u81ea\u7531\u306b\u5f7c\u3089\u306e\u30c7\u30a3\u30b9\u30af\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u306b\u95a2\u4fc2\u3057\u305f\u5371\u967a \u304b\u3089\u3001\u30e6\u30fc\u30b6\u30fc\u3092\u4fdd\u8b77\u3057\u307e\u3059\u3002 \u3082\u3057\u3001\u7279\u6a29\u7121\u3057\u306e\u30b3\u30fc\u30c9\uff08\u30a6\u30a8\u30c3\u30d6\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u3088\u3046\u306a\uff09\u304b\u3089 File \u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306b\u30d1\u30b9\u3092\u901a\u305b\u3070\u3001 \u4f8b\u5916\u304c\u767a\u751f\u3057\u307e\u3059\u3002", "localization_tags": [], "locale": "ja", "last_edit": "2016-07-01T09:44:33", "review_tags": []}, {"uuid": "289e54a2-c85c-4fe2-8136-32e153526da4", "title": "\u5728chrome\u4ee3\u7801\u4e2d\u4f7f\u7528DOM File API", "url": "/zh-CN/docs/%E6%89%A9%E5%B1%95/Using_the_DOM_File_API_in_chrome_code", "tags": [], "summary": "\u5982\u679c\u4f60\u60f3\u5728chrome\u4ee3\u7801\u4e2d\u4f7f\u7528DOM\u00a0File API,\u53ef\u4ee5\u4f7f\u7528,\u4e14\u6ca1\u6709\u4efb\u4f55\u9650\u5236.\u4e8b\u5b9e\u4e0a,\u4f60\u8fd8\u83b7\u5f97\u4e86\u4e00\u4e2a\u989d\u5916\u7684\u7279\u6027:\u4f60\u53ef\u4ee5\u901a\u8fc7\u4f20\u5165\u6587\u4ef6\u7684\u672c\u5730\u8def\u5f84\u6765\u521b\u5efa\u4e00\u4e2a File\u5bf9\u8c61.\u8fd9\u4e2a\u7279\u6027\u53ea\u5728\u7279\u6743\u4ee3\u7801\u4e2d\u53ef\u7528,web\u9875\u9762\u4e2d\u4e0d\u53ef\u7528.\u5f88\u660e\u663e,\u8fd9\u662f\u56e0\u4e3a\u5b89\u5168\u95ee\u9898,\u5426\u5219\u7f51\u9875\u53ef\u4ee5\u8bfb\u53d6\u5230\u7528\u6237\u8ba1\u7b97\u673a\u4e2d\u4efb\u610f\u7684\u672c\u5730\u6587\u4ef6.\u5982\u679c\u4f60\u5728\u975e\u7279\u6743\u4ee3\u7801(\u6bd4\u5982\u666e\u901a\u7684web\u9875\u9762)\u4e2d\u5411File\u6784\u9020\u51fd\u6570\u4f20\u5165\u4e86\u4e00\u4e2a\u8def\u5f84\u5b57\u7b26\u4e32,\u5219\u4f1a\u629b\u51fa\u5f02\u5e38.", "localization_tags": [], "locale": "zh-CN", "last_edit": "2012-12-25T00:42:06", "review_tags": []}, {"uuid": "a157e282-23a3-4839-9255-7940ee42106c", "title": "\u4f7f\u7528 DOM \u6a94\u6848 API \u518dFireFox\u5916\u89c0\u4ee3\u78bc\u4e0a", "url": "/zh-TW/docs/Extensions/%E4%BD%BF%E7%94%A8_DOM_%E6%AA%94%E6%A1%88_API_%E5%86%8DFireFox%E5%A4%96%E8%A7%80%E4%BB%A3%E7%A2%BC%E4%B8%8A", "tags": [], "summary": "\u5982\u679c\u4f60\u60f3\u4f7f\u7528\u5982\u679c\u4f60\u60f3\u4f7f\u7528 DOM \u6a94\u6848 API \u5728FireFox\u5916\u89c0\u4ee3\u78bc\u4e0a\u9762\uff0c\u4f60\u53ef\u4ee5\u6c92\u6709\u4efb\u4f55\u9650\u5236\u7684\u9019\u6a23\u505a\u3002\u4e8b\u5be6\u4e0a\u4f60\u5f97\u5230\u4e86\u4e00\u500b\u7279\u5225\u7684\u529f\u80fd\u3002\u4f60\u53ef\u4ee5\u5efa\u7acb\u4f60\u53ef\u4ee5\u5efa\u7acb File \u7269\u4ef6 specifying the path of the file on the user's computer. This only works from privileged code, so web content can't do it. This protects users from the inherent security risks associated with allowing web content free access to the contents of their disks. If you pass a path to the File\u00a0constructor from unprivileged code (such as web content), an exception will be thrown.", "localization_tags": ["inprogress"], "locale": "zh-TW", "last_edit": "2015-03-21T15:36:24", "review_tags": []}], "modified": "2015-01-12T16:16:01", "label": "Using the DOM File API in chrome code", "localization_tags": [], "locale": "en-US", "id": 5636, "last_edit": "2015-01-12T16:15:59", "summary": "If you want to use the DOM\u00a0File API in chrome code, you can do so without restriction. In fact, you get one bonus feature: you can create File objects specifying the path of the file on the user's computer. This only works from privileged code, so web content can't do it. This protects users from the inherent security risks associated with allowing web content free access to the contents of their disks. If you pass a path to the File\u00a0constructor from unprivileged code (such as web content), an exception will be thrown.", "sections": [{"id": "Scope_Availability", "title": "Scope Availability"}, {"id": "Accessing_a_file_by_hard-coded_pathname", "title": "Accessing a file by hard-coded pathname"}, {"id": "Accessing_files_in_a_special_directory", "title": "Accessing files in a special directory"}, {"id": "Notes", "title": "Notes"}, {"id": "See_also", "title": "See also"}], "slug": "Extensions/Using_the_DOM_File_API_in_chrome_code", "review_tags": []}