{"id":13481108,"url":"https://github.com/zefoy/ngx-dropzone-wrapper","last_synced_at":"2026-01-14T19:08:37.318Z","repository":{"id":10774689,"uuid":"66935235","full_name":"zefoy/ngx-dropzone-wrapper","owner":"zefoy","description":"Angular wrapper library for Dropzone","archived":false,"fork":false,"pushed_at":"2025-03-09T19:49:11.000Z","size":9650,"stargazers_count":174,"open_issues_count":45,"forks_count":51,"subscribers_count":18,"default_branch":"master","last_synced_at":"2026-01-14T04:18:46.150Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/zefoy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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,"publiccode":null,"codemeta":null}},"created_at":"2016-08-30T11:37:56.000Z","updated_at":"2025-09-19T12:39:21.000Z","dependencies_parsed_at":"2024-06-18T13:34:04.253Z","dependency_job_id":"4ac14629-9df3-495e-96a8-8b682cfe0fa7","html_url":"https://github.com/zefoy/ngx-dropzone-wrapper","commit_stats":{"total_commits":313,"total_committers":14,"mean_commits":"22.357142857142858","dds":"0.11182108626198084","last_synced_commit":"0894c3d70776c221cd27cc1d4e44f92e1da5ccca"},"previous_names":["zefoy/angular2-dropzone-wrapper"],"tags_count":63,"template":false,"template_full_name":null,"purl":"pkg:github/zefoy/ngx-dropzone-wrapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zefoy%2Fngx-dropzone-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zefoy%2Fngx-dropzone-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zefoy%2Fngx-dropzone-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zefoy%2Fngx-dropzone-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zefoy","download_url":"https://codeload.github.com/zefoy/ngx-dropzone-wrapper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zefoy%2Fngx-dropzone-wrapper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28431211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2024-07-31T17:00:48.754Z","updated_at":"2026-01-14T19:08:37.298Z","avatar_url":"https://github.com/zefoy.png","language":"TypeScript","funding_links":[],"categories":["Uncategorized","Third Party Components","Awesome Angular [![Awesome TipeIO](https://img.shields.io/badge/Awesome%20Angular-@TipeIO-6C6AE7.svg)](https://github.com/gdi2290/awesome-angular) [![Awesome devarchy.com](https://img.shields.io/badge/Awesome%20Angular-@devarchy.com-86BDC1.svg)](https://github.com/brillout/awesome-angular-components)"],"sub_categories":["Uncategorized","File Upload","Angular \u003ca id=\"angular\"\u003e\u003c/a\u003e"],"readme":"# Angular Dropzone Wrapper\n\n\u003ca href=\"https://badge.fury.io/js/ngx-dropzone-wrapper\"\u003e\u003cimg src=\"https://badge.fury.io/js/ngx-dropzone-wrapper.svg\" align=\"right\" alt=\"npm version\" height=\"18\"\u003e\u003c/a\u003e\n\nThis is an Angular wrapper library for the [Dropzone](http://www.dropzonejs.com/). To use this library you should get familiar with the Dropzone documentation as well since this documentation only explains details specific to this wrapper.\n\nThis documentation is for the latest 6.x.x version which requires Angular 5 or newer. For Angular 4 you need to use the latest 4.x.x version. Documentation for the 4.x.x can be found from \u003ca href=\"https://github.com/zefoy/ngx-dropzone-wrapper/tree/4.x.x/\"\u003ehere\u003c/a\u003e.\n\n### EOL notice\n\nVersion 17.0.0 will most likely be the last release of this library. I recommend you to switch to something more maintained due to official dropzone package being unmaintained.\n\n### Quick links\n\n[Example application](https://zefoy.github.io/ngx-dropzone-wrapper/)\n |\n[StackBlitz example](https://stackblitz.com/github/zefoy/ngx-dropzone-wrapper/tree/master)\n |\n[Dropzone documentation](http://www.dropzonejs.com/#configuration-options)\n\n### Building the library\n\n```bash\nnpm install\nnpm run build\n```\n\n### Running the example\n\n```bash\nnpm install\nnpm run start\n```\n\n### Installing and usage\n\n```bash\nnpm install ngx-dropzone-wrapper --save\n```\n\n##### Load the module for your app (with global configuration):\n\nProviding the global configuration is optional and when used you should only provide the configuration in your root module.\n\n```javascript\nimport { DropzoneModule } from 'ngx-dropzone-wrapper';\nimport { DROPZONE_CONFIG } from 'ngx-dropzone-wrapper';\nimport { DropzoneConfigInterface } from 'ngx-dropzone-wrapper';\n\nconst DEFAULT_DROPZONE_CONFIG: DropzoneConfigInterface = {\n // Change this to your upload POST address:\n  url: 'https://httpbin.org/post',\n  maxFilesize: 50,\n  acceptedFiles: 'image/*'\n};\n\n@NgModule({\n  ...\n  imports: [\n    ...\n    DropzoneModule\n  ],\n  providers: [\n    {\n      provide: DROPZONE_CONFIG,\n      useValue: DEFAULT_DROPZONE_CONFIG\n    }\n  ]\n})\n```\n\n##### Use it in your HTML template (with custom configuration):\n\nThis library provides two ways to create a Dropzone element, component for simple use cases and directive for more custom use cases.\n\n**COMPONENT USAGE**\n\nSimply replace the element that would ordinarily be passed to `Dropzone` with the dropzone component.\n\n**NOTE:** Component provides couple additional features from directive such as the placeholder image. If you don't need them or want to create custom component then you might want to use the directive instead.\n\n```html\n\u003cdropzone [config]=\"config\" [message]=\"'Click or drag images here to upload'\" (error)=\"onUploadError($event)\" (success)=\"onUploadSuccess($event)\"\u003e\u003c/dropzone\u003e\n```\n\n```javascript\n[config]                // Custom config to override the global defaults.\n\n[disabled]              // Disables / detaches Dropzone from the element.\n\n[message]               // Message to show for the user on the upload area.\n[placeholder]           // Placeholder image to be shown as the upload area.\n\n[useDropzoneClass]      // Use 'dropzone' class (use provided default styles).\n\n(error)                 // Event handler for the Dropzone upload error event.\n(success)               // Event handler for the Dropzone upload success event.\n(canceled)              // Event handler for the Dropzone upload canceled event.\n\n(\u003cdropzoneEvent\u003e)       // All Dropzone events / callbacks work as bindings.\n                        // Event names are in camel case (not lower case).\n                        // Example: maxfilesreached -\u003e maxFilesReached\n```\n\n**DIRECTIVE USAGE**\n\nWhen using only the directive you need to provide your own theming or import the default theme:\n\n```css\n@import '~dropzone/dist/min/dropzone.min.css';\n```\n\nDropzone directive can be used in form or div element with optional custom configuration:\n\n```html\n\u003cdiv class=\"dropzone\" [dropzone]=\"config\" (error)=\"onUploadError($event)\" (success)=\"onUploadSuccess($event)\"\u003e\u003c/div\u003e\n```\n\n```javascript\n[dropzone]              // Can be used to provide optional custom config.\n\n[disabled]              // Disables / detaches Dropzone from the element.\n\n(error)                 // Event handler for the Dropzone upload error event.\n(success)               // Event handler for the Dropzone upload success event.\n(canceled)              // Event handler for the Dropzone upload canceled event.\n\n(\u003cdropzoneEvent\u003e)       // All Dropzone events / callbacks work as bindings.\n                        // Event names are in camel case (not lower case).\n                        // Example: maxfilesreached -\u003e maxFilesReached\n```\n\n##### Available configuration options (custom / global configuration):\n\nThis library supports all Dropzone configuration options and few extra options for easier usage.\n\n**LIBRARY OPTIONS**\n\n```javascript\nautoReset               // Time for resetting component after upload (Default: null).\nerrorReset              // Time for resetting component after an error (Default: null).\ncancelReset             // Time for resetting component after canceling (Default: null).\n```\n\n**DROPZONE OPTIONS**\n\n```javascript\nurl                     // Upload url where to send the upload request (Default: '').\nmethod                  // HTTP method to use communicating with the server (Default: 'post').\nheaders                 // Object of additional headers to send to the server (Default: null).\nparamName               // Name of the file parameter that gets transferred (Default: 'file').\nmaxFilesize             // Maximum file size for the upload files in megabytes (Default: null).\nacceptedFiles           // Comma separated list of mime types or file extensions (Default: null).\n```\n\nFor more detailed documentation with all the supported Dropzone events / options see the Dropzone documentation.\n\n##### Available control / helper functions (provided by the directive):\n\n```javascript\ndropzone()              // Returns reference to the Dropzone instance for full API access.\n\nreset(cancel?)          // Removes all processed files (optionally cancels uploads as well).\n```\n\nAbove functions can be accessed through the directive reference (available as directiveRef in the component).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzefoy%2Fngx-dropzone-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzefoy%2Fngx-dropzone-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzefoy%2Fngx-dropzone-wrapper/lists"}