{"id":15672353,"url":"https://github.com/d2phap/vue-file-selector","last_synced_at":"2026-04-08T13:32:23.087Z","repository":{"id":41061389,"uuid":"218437652","full_name":"d2phap/vue-file-selector","owner":"d2phap","description":"File selector with validation that supports drag-n-drop for @vuejs","archived":false,"fork":false,"pushed_at":"2023-03-15T02:22:51.000Z","size":2861,"stargazers_count":17,"open_issues_count":3,"forks_count":10,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-10-01T14:37:18.876Z","etag":null,"topics":["drag-and-drop","drag-drop","file-input","file-selector","file-upload","file-validation","filesystem","selector-component","validation","vue-component","vue-resource","vue3","vue3-plugin","vue3-typescript","vuejs","vuejs3"],"latest_commit_sha":null,"homepage":"https://imageglass.org/about","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/d2phap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-10-30T03:40:40.000Z","updated_at":"2025-09-17T07:11:32.000Z","dependencies_parsed_at":"2024-03-03T00:32:09.544Z","dependency_job_id":"02733524-6b90-49b6-b820-45f097c56839","html_url":"https://github.com/d2phap/vue-file-selector","commit_stats":{"total_commits":70,"total_committers":4,"mean_commits":17.5,"dds":0.4571428571428572,"last_synced_commit":"4c7847e51406be43e87a75d6f0d8eba8fe0d7edb"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/d2phap/vue-file-selector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d2phap%2Fvue-file-selector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d2phap%2Fvue-file-selector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d2phap%2Fvue-file-selector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d2phap%2Fvue-file-selector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d2phap","download_url":"https://codeload.github.com/d2phap/vue-file-selector/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d2phap%2Fvue-file-selector/sbom","scorecard":{"id":315632,"data":{"date":"2025-08-11","repo":{"name":"github.com/d2phap/vue-file-selector","commit":"4c7847e51406be43e87a75d6f0d8eba8fe0d7edb"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/2 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 29 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"34 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-c2jc-4fpr-4vhg","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-c7qv-q95q-8v27","Warn: Project is vulnerable to: GHSA-4www-5p9h-95mh","Warn: Project is vulnerable to: GHSA-9gqv-wp59-fq42","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-hc6q-2mpp-qw7j","Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986","Warn: Project is vulnerable to: GHSA-wr3j-pwj9-hqq6","Warn: Project is vulnerable to: GHSA-4v9v-hfq4-rm2v","Warn: Project is vulnerable to: GHSA-9jgg-88mc-972h","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T00:07:44.705Z","repository_id":41061389,"created_at":"2025-08-18T00:07:44.705Z","updated_at":"2025-08-18T00:07:44.705Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31558381,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T10:21:54.569Z","status":"ssl_error","status_checked_at":"2026-04-08T10:21:38.171Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["drag-and-drop","drag-drop","file-input","file-selector","file-upload","file-validation","filesystem","selector-component","validation","vue-component","vue-resource","vue3","vue3-plugin","vue3-typescript","vuejs","vuejs3"],"created_at":"2024-10-03T15:24:36.746Z","updated_at":"2026-04-08T13:32:23.058Z","avatar_url":"https://github.com/d2phap.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vue File selector for Vuejs 3\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fd2phap%2Fvue-file-selector.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fd2phap%2Fvue-file-selector?ref=badge_shield)\n\nFile selector with validation that supports drag-n-drop for Vuejs.\n\n![Vue File selector](https://github.com/d2phap/vue-file-selector/raw/main/demo/public/screenshot.jpg)\n\n\n### Other open source projects\n- `ImageGlass` - A lightweight, versatile image viewer: https://imageglass.org\n- `Fluent Reveal Effect Js` (Fluent Design System): https://github.com/d2phap/fluent-reveal-effect\n- `FileWatcherEx` - A wrapper of C# FileSystemWatcher for Windows: https://github.com/d2phap/FileWatcherEx\n\n\n##  Install\nRun the command\n```\nnpm i vue-file-selector@latest\n```\n\nNPM package: https://www.npmjs.com/package/vue-file-selector\n\nGithub source: https://github.com/d2phap/vue-file-selector\n\n## Usage\nPlease see [Demo project](https://github.com/d2phap/vue-file-selector/tree/main/demo) for full example.\n\n### Declare the plugin\n```js\n// in main.ts\n\nimport { createApp } from 'vue';\n\n// import FileSelector main css\nimport 'vue-file-selector/dist/main.css';\n\n// import the FileSelector plugin\nimport FileSelector from 'vue-file-selector';\n\n\nimport App from './App.vue';\n\ncreateApp(App)\n\n  // then use it!\n  .use(FileSelector)\n  .mount('#app');\n```\n\n### Use in Vue file\n```html\n\u003ctemplate\u003e\n  \u003cdiv\u003e\n    \u003cFileSelector\n      accept-extensions=\".jpg,.svg\"\n      :multiple=\"true\"\n      :max-file-size=\"5 * 1024 * 1024\"\n      @validated=\"handleFilesValidated\"\n      @changed=\"handleFilesChanged\"\u003e\n      Select image files\n    \u003c/FileSelector\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n\n\u003cscript lang=\"ts\"\u003e\nimport { Options, Vue } from 'vue-class-component';\nimport { FsValidationResult } from 'vue-file-selector/dist';\n\n@Options({})\nexport default class App extends Vue {\n  handleFilesValidated(result: FsValidationResult, files: File[]) {\n    console.log('Validation result: ' + result);\n  },\n\n  handleFilesChanged(files: File[]) {\n    console.log('Selected files: ');\n    console.table(files);\n  },\n}\n\u003c/script\u003e\n```\n\n## Slots\n| Name | Default | Description |\n| -- | -- | -- |\n| `default` | `Select` | Content of the `Select` button. |\n| `loader` | `Loading...` | Content of loading state. |\n| `top` | `(empty)` | Top section content, above the `Select` button. |\n| `bottom` | `(empty)` | Bottom section content, below the `Select` button. |\n\n\n## Props\n| Name | Type | Default | Description |\n| -- | -- | -- | -- |\n| `multiple` | `boolean` | `false` | Allow multiple files selected. |\n| `isLoading` | `boolean` | `false` | Show or hide the loading section (slot: `loader`). |\n| `acceptExtensions` | `string` | `(empty)` | List of file extensions accepted. Each extension separated by a comma (`,`). E.g. `accept-extensions=\".zip,.rar\"`. |\n| `maxFileSize` | `number` | `NaN` | Maximum **size in byte** of every single file allowed. E.g. `:max-file-size=\"2*1024*1024\"` (only the files that ≤2 MB are allowed). |\n| `height` | `number` | `NaN` | The height of droppable section. |\n| `validateFn` | `FsValidateFn` | `() =\u003e true` | A custom validation function that returns boolean value. |\n\n\n## Events\n### 1. `@validated`\nOccurs after the selected files validated.\n\n```js\nFunction(result: FsValidationResult, files: File[]): void\n```\n- `result`: validation result, \n  + returns `true` if the file validation is valid, else\n  + returns `false` or [Error codes (`string`)](#error-codes).\n- `files`: list of files validated.\n\n### 2. `@changed`\nOccurs if the selected files pass validation.\n\n```js\nFunction(files: File[]): void\n```\n- `files`: list of files validated.\n\n\n## Error codes\nList of error codes returned after validation, see `FsValidationResult`.\n\n| Code | Error description |\n| -- | -- |\n| `EXTENSION_ERROR` | The selected files contain invalid extensions. |\n| `FILE_SIZE_ERROR` | The selected files size exceeded limit. |\n| `MULTIFILES_ERROR` | Multiple files selection is not allowed. |\n\n\n## License\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fd2phap%2Fvue-file-selector.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fd2phap%2Fvue-file-selector?ref=badge_large)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd2phap%2Fvue-file-selector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd2phap%2Fvue-file-selector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd2phap%2Fvue-file-selector/lists"}