{"id":15295038,"url":"https://github.com/dhhb/vue-base64-file-upload","last_synced_at":"2025-08-21T05:33:04.537Z","repository":{"id":57394680,"uuid":"82316198","full_name":"dhhb/vue-base64-file-upload","owner":"dhhb","description":"Upload files as base64 data-uris","archived":false,"fork":false,"pushed_at":"2017-02-19T10:37:15.000Z","size":1762,"stargazers_count":79,"open_issues_count":5,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-10T19:43:18.888Z","etag":null,"topics":["base64","blob","component","data-uri","file-upload","vue-components","vuejs","vuejs2"],"latest_commit_sha":null,"homepage":"https://dhhb.github.io/vue-base64-file-upload/example","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dhhb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-17T16:29:53.000Z","updated_at":"2023-08-29T23:28:42.000Z","dependencies_parsed_at":"2022-09-11T04:02:16.185Z","dependency_job_id":null,"html_url":"https://github.com/dhhb/vue-base64-file-upload","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/dhhb/vue-base64-file-upload","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhhb%2Fvue-base64-file-upload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhhb%2Fvue-base64-file-upload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhhb%2Fvue-base64-file-upload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhhb%2Fvue-base64-file-upload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dhhb","download_url":"https://codeload.github.com/dhhb/vue-base64-file-upload/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhhb%2Fvue-base64-file-upload/sbom","scorecard":{"id":340254,"data":{"date":"2025-08-11","repo":{"name":"github.com/dhhb/vue-base64-file-upload","commit":"e2d57dcecf80181e26d2c4b57a7508f207895cbc"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/14 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":"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":"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":"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":"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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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"}}]},"last_synced_at":"2025-08-18T05:37:51.333Z","repository_id":57394680,"created_at":"2025-08-18T05:37:51.333Z","updated_at":"2025-08-18T05:37:51.333Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271430856,"owners_count":24758402,"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","status":"online","status_checked_at":"2025-08-21T02:00:08.990Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["base64","blob","component","data-uri","file-upload","vue-components","vuejs","vuejs2"],"created_at":"2024-09-30T17:08:23.183Z","updated_at":"2025-08-21T05:33:03.662Z","avatar_url":"https://github.com/dhhb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-base64-file-upload\n\n\u003e Upload files as base64 data-uris (URL representing the file's data as a base64 encoded string).\n\n\u003cimg src=\"example.gif\" width=\"600\" /\u003e\n\n## Install\n\n```bash\nnpm i vue-base64-file-upload --save\n```\n\n## Example\n\n```js\nimport Vue from 'vue';\nimport VueBase64FileUpload from 'vue-base64-file-upload';\n\nconst app = new Vue({\n  components: {\n    VueBase64FileUpload\n  },\n\n  data() {\n    return {\n      customImageMaxSize: 3 // megabytes\n    };\n  },\n\n  methods: {\n    onFile(file) {\n      console.log(file); // file object\n    },\n\n    onLoad(dataUri) {\n      console.log(dataUri); // data-uri string\n    },\n\n    onSizeExceeded(size) {\n      alert(`Image ${size}Mb size exceeds limits of ${this.customImageMaxSize}Mb!`);\n    }\n  },\n\n  template: `\n    \u003cdiv class=\"container\"\u003e\n      \u003ch2\u003eUpload file\u003c/h2\u003e\n      \u003cvue-base64-file-upload \n        class=\"v1\"\n        accept=\"image/png,image/jpeg\"\n        image-class=\"v1-image\"\n        input-class=\"v1-input\"\n        :max-size=\"customImageMaxSize\"\n        @size-exceeded=\"onSizeExceeded\"\n        @file=\"onFile\"\n        @load=\"onLoad\" /\u003e\n    \u003c/div\u003e\n  `\n});\n\napp.$mount('#app');\n```\n\n## API\n\n## Props\n\n- `image-class` - pass additional classes for preview `img` tag\n- `input-class` - pass additional classes for text `input` tag\n- `accept` - mimetypes allowed for upload, _defaults to `'image/png,image/gif,image/jpeg'`_\n- `max-size` - number of megabytes allowed for upload, _defaults to `10`_\n- `disable-preview` - not show preview image, _defaults to `false`_\n- `default-preview` - pass url or data-uri to be displayed as default image\n- `file-name` - pass custom filename to be displayed in text `input` tag\n- `placeholder` - pass placeholder text for text `input` tag\n\n## Events\n\n- `file` - fired when file object is ready\n- `load` - fired when data-uri is ready\n- `size-exceeded` - fired if uploaded image size exceeds limits\n\n## References\n\n- [FileReader API](https://developer.mozilla.org/en-US/docs/Web/API/FileReader)\n- [`readAsDataURL`](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsDataURL)\n\n---\n\n**MIT Licensed**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhhb%2Fvue-base64-file-upload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdhhb%2Fvue-base64-file-upload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhhb%2Fvue-base64-file-upload/lists"}