{"id":13630978,"url":"https://github.com/FutoRicky/ember-cli-dropzonejs","last_synced_at":"2025-04-17T17:32:11.216Z","repository":{"id":35875533,"uuid":"40160746","full_name":"FutoRicky/ember-cli-dropzonejs","owner":"FutoRicky","description":"Drag and drop file uploader addon using dropzonejs","archived":false,"fork":false,"pushed_at":"2023-06-05T15:25:51.000Z","size":2716,"stargazers_count":33,"open_issues_count":23,"forks_count":37,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-13T08:41:58.011Z","etag":null,"topics":["addon","drag","dropzonejs","ember-cli","uploader-addon"],"latest_commit_sha":null,"homepage":null,"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/FutoRicky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2015-08-04T03:14:04.000Z","updated_at":"2024-03-12T04:13:12.000Z","dependencies_parsed_at":"2024-06-18T20:12:17.329Z","dependency_job_id":null,"html_url":"https://github.com/FutoRicky/ember-cli-dropzonejs","commit_stats":{"total_commits":154,"total_committers":22,"mean_commits":7.0,"dds":0.4285714285714286,"last_synced_commit":"7e26e6ccf27b3a4376f590e0ab88380cb8ad3eaa"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FutoRicky%2Fember-cli-dropzonejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FutoRicky%2Fember-cli-dropzonejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FutoRicky%2Fember-cli-dropzonejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FutoRicky%2Fember-cli-dropzonejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FutoRicky","download_url":"https://codeload.github.com/FutoRicky/ember-cli-dropzonejs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249360046,"owners_count":21257162,"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":["addon","drag","dropzonejs","ember-cli","uploader-addon"],"created_at":"2024-08-01T22:02:05.649Z","updated_at":"2025-04-17T17:32:10.381Z","avatar_url":"https://github.com/FutoRicky.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# ember-cli-dropzonejs\n[![Ember Observer Score](https://emberobserver.com/badges/ember-cli-dropzonejs.svg)](https://emberobserver.com/addons/ember-cli-dropzonejs)\n[ ![Codeship Status for FutoRicky/ember-cli-dropzonejs](https://app.codeship.com/projects/81fd6b80-1a72-0136-d790-5ac25dfa0b5f/status?branch=master)](https://app.codeship.com/projects/284304)\n\nDrag and drop file uploader addon for ember-cli using [Dropzonejs](http://www.dropzonejs.com/).\n\n[DEMO](http://futoricky.github.io/ember-cli-dropzonejs/)\n\nVersions\n-------------\nCurrent version is running ember-cli \u003e= `3.5.0`\n\nVersions 1.1.1 \u003c= are running ember-cli `2.13.1`\n\nVersions 0.8.6 \u003c= are running ember-cli `1.13.8`\n\n\nInstallation\n-------------\n`ember install ember-cli-dropzonejs`\n\nThis addon will use dropzone's default css by default. If you prefer to use your own css, add this option to your `ember-cli-build.js`:\n\n```javascript\nvar app = new EmberApp(defaults, {\n  ---\n  emberCliDropzonejs: {\n    includeDropzoneCss: false\n  }\n  ---\n});\n```\n\n\nUsage\n-------------\nSimply add the component to your template like so: `{{drop-zone url='/endpoint'}}`\n\nYou can see all properties in the [Dropzonejs configuration docs](http://www.dropzonejs.com/#configuration).\n\nTo set properties simply add the name of the property inside the component call and assign a value.\n\nexample:\n\n```handlebars\n{{drop-zone url='http://example.com/example' clickable=false addRemoveLinks=true}}\n```\n\nYou can also use dynamic options:\n\n```javascript\n// controller.js\n\nimport Controller from '@ember/controller';\nimport { computed } from '@ember/object';\n\nexport default Controller.extend({\n  addedfile: computed(function() {\n    return function() {\n      Ember.Logger.debug('addedFile happened');\n    };\n  }),\n  options: computed(function() {\n    return {\n      url: '#',\n      addRemoveLinks: true,\n      autoProcessQueue: false,\n      addedfile: this.addedfile\n    };\n  })\n});\n\n```\n\n```handlebars\n// template.js\n\n{{drop-zone config=options}}\n```\n\nIf you would like to use the whole document body as a drop location you can set `maxDropRegion` to true\n\n#### Event Handling\n[Dropzonejs Events Docs](http://www.dropzonejs.com/#events)\n\n\nTo use events, set your event handler in your controller like so:\n\n```javascript\n  addedFileEvent: computed(function() {\n    return function() {\n      // do something...\n    };\n  }),\n```\n\nand set it in your component declaration:\n\n```handlebars\n{{drop-zone url=\"http://example.com/example\" addedfile=addedFileEvent}}\n```\n\n**Remember to add an url, this addon will not work without it**\n\nContributions\n-------------\n\nAll contributions are welcomed and encouraged.\n\nPlease make all pull requests to the `dev` branch.\n\nThanks!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFutoRicky%2Fember-cli-dropzonejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFutoRicky%2Fember-cli-dropzonejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFutoRicky%2Fember-cli-dropzonejs/lists"}