{"_rev":"4-08430c3ee9f4190360748b2cccdf888c","time":{"created":"2025-08-18T06:45:45.611Z","modified":"2025-08-18T06:45:46.224Z","1.6.1":"2025-01-24T03:39:03.551Z","1.6.2":"2025-08-18T06:45:45.909Z"},"_id":"@dhrimz/cordova-plugin-filepath","name":"@dhrimz/cordova-plugin-filepath","dist-tags":{"latest":"1.6.2"},"versions":{"1.6.2":{"name":"@dhrimz/cordova-plugin-filepath","version":"1.6.2","description":"Resolve native file paths from content URLs for Cordova platforms","cordova":{"id":"cordova-plugin-filepath","platforms":["android"]},"scripts":{"version":"sync-cordova-xml package.json plugin.xml --output plugin.xml && git add plugin.xml"},"repository":{"type":"git","url":"git+https://github.com/DrimZ/cordova-plugin-filepath.git"},"originalRepository":{"type":"git","url":"https://github.com/hiddentao/cordova-plugin-filepath.git"},"keywords":["cordova","file","ecosystem:cordova","cordova-android"],"author":{"name":"Ryan Nacpil","email":"ram@hiddentao.com","url":"forked from Ramesh Nair <ram@hiddentao.com>"},"license":"Apache 2.0","devDependencies":{"sync-cordova-xml":"^0.4.0"},"_id":"@dhrimz/cordova-plugin-filepath@1.6.2","gitHead":"bc70fe9bdeff33ccadaeab5929a1b942864b2c50","bugs":{"url":"https://github.com/DrimZ/cordova-plugin-filepath/issues"},"homepage":"https://github.com/DrimZ/cordova-plugin-filepath#readme","_nodeVersion":"20.18.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-bVWJhSOs7wxGjeQNf3c190AI+qpsOgctxb62pdPyMqf9QcI14sZeopU9hJTJHRCtPnmURT4/J9bbLfWKBY/e+Q==","shasum":"a00d8102da7859a48f8d16b06858bfeefd7b31a3","tarball":"https://registry.npmjs.org/@dhrimz/cordova-plugin-filepath/-/cordova-plugin-filepath-1.6.2.tgz","fileCount":7,"unpackedSize":37903,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGu76bc0VgWuP9ph5ofQNovZEcc/g/qXeVkVcu57o/s5AiEA270XgV6zWfffFNW+i5GOqzxX5iwjDy+RLzzur/N4/CQ="}]},"_npmUser":{"name":"iamryann","email":"nacpil.ryan.d@gmail.com"},"directories":{},"maintainers":[{"name":"iamryann","email":"nacpil.ryan.d@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cordova-plugin-filepath_1.6.2_1755499545733_0.7207504543078955"},"_hasShrinkwrap":false}},"maintainers":[{"name":"iamryann","email":"nacpil.ryan.d@gmail.com"}],"description":"Resolve native file paths from content URLs for Cordova platforms","homepage":"https://github.com/DrimZ/cordova-plugin-filepath#readme","keywords":["cordova","file","ecosystem:cordova","cordova-android"],"repository":{"type":"git","url":"git+https://github.com/DrimZ/cordova-plugin-filepath.git"},"author":{"name":"Ryan Nacpil","email":"ram@hiddentao.com","url":"forked from Ramesh Nair <ram@hiddentao.com>"},"bugs":{"url":"https://github.com/DrimZ/cordova-plugin-filepath/issues"},"license":"Apache 2.0","readme":"# Repository Notice\n\nThis repository is a forked version of [hiddentao/cordova-plugin-filepath](https://github.com/hiddentao/cordova-plugin-filepath) to support the latest Android permissions, including:\n\n- `android.permission.READ_MEDIA_IMAGES`\n- `android.permission.READ_MEDIA_VIDEO`\n- `android.permission.READ_MEDIA_AUDIO`\n\n<br>\n\n## Installation\n\n```bash\n$ cordova plugin add @dhrimz/cordova-plugin-filepath\n```\n\n<br>\n\n---\n\n<br><br><br>\n\n# cordova-plugin-filepath\n\n**PLEASE NOTE: This plugin is no longer actively maintained.**\n\nThis plugin allows you to resolve the native filesystem path for Android content\nURIs and is based on code in the [aFileChooser](https://github.com/iPaulPro/aFileChooser/blob/master/aFileChooser/src/com/ipaulpro/afilechooser/utils/FileUtils.java) library.\n\nOriginal inspiration [from StackOverflow](http://stackoverflow.com/questions/20067508/get-real-path-from-uri-android-kitkat-new-storage-access-framework).\n\n## Installation\n\n```bash\n$ cordova plugin add cordova-plugin-filepath\n```\n\n## Supported Platforms\n\n* Android\n\n## Usage\n\nOnce installed the plugin defines the `window.FilePath` object. To resolve a\nfile path:\n\n```js\nwindow.FilePath.resolveNativePath('content://...', successCallback, errorCallback);\n```\n\n##### successCallback\nReturns the ``file://`` file path.\n\n##### errorCallback\nReturns the following object:\n```js\n{ code: <integer>, message: <string> }\n```\nPossible error codes are:\n* ``-1`` - describes an invalid action\n* ``0`` - ``file://`` path could not be resolved\n* ``1`` - the native path links to a cloud file (e.g: from Google Drive app)\n\n## LICENSE\n\nApache (see LICENSE.md)\n","readmeFilename":"README.md"}