{"id":18823127,"url":"https://github.com/mobius3/cordova-plugin-filename","last_synced_at":"2025-04-14T01:24:37.070Z","repository":{"id":57147708,"uuid":"218035785","full_name":"mobius3/cordova-plugin-filename","owner":"mobius3","description":"Plugin to obtain the real filename on android","archived":false,"fork":false,"pushed_at":"2019-10-28T14:23:49.000Z","size":8,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T15:22:10.647Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mobius3.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-28T11:55:26.000Z","updated_at":"2022-09-22T04:15:07.000Z","dependencies_parsed_at":"2022-09-05T16:40:10.039Z","dependency_job_id":null,"html_url":"https://github.com/mobius3/cordova-plugin-filename","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mobius3%2Fcordova-plugin-filename","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mobius3%2Fcordova-plugin-filename/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mobius3%2Fcordova-plugin-filename/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mobius3%2Fcordova-plugin-filename/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mobius3","download_url":"https://codeload.github.com/mobius3/cordova-plugin-filename/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248731648,"owners_count":21152837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T00:52:49.726Z","updated_at":"2025-04-14T01:24:37.032Z","avatar_url":"https://github.com/mobius3.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cordova Filename Plugin\n\nSimple plugin that returns the real file name of an android `content://` URI or any other return from file picking intent API.\n\nIt uses the method described at https://developer.android.com/training/secure-file-sharing/retrieve-info\n\n## Install\n\nInstall it via cordova CLI:\n\n```\ncordova plugin add cordova-plugin-filename\n```\n\n## Use\n\nA new function will be available at `window.cordova.plugins.filename` with the following prototype: `getFilename(url, successCallback, errorCallback)`\n\n```\ncordova.plugins.filename.getFilename(`\u003creturn from file picker/writer\u003e`, name =\u003e console.log('file name is:', name))\n```\n\nBe sure to pass a `content://` URL rather than a `cdvfile://` or `file://` URL. You might need to call `window.resolveLocalFileSystemURL` before.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmobius3%2Fcordova-plugin-filename","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmobius3%2Fcordova-plugin-filename","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmobius3%2Fcordova-plugin-filename/lists"}