{"id":31933080,"url":"https://github.com/modulr/mdr-angular-file","last_synced_at":"2025-12-12T04:28:43.413Z","repository":{"id":58223346,"uuid":"44139095","full_name":"modulr/mdr-angular-file","owner":"modulr","description":"File Upload Drag and Drop","archived":false,"fork":false,"pushed_at":"2018-10-01T14:59:49.000Z","size":27,"stargazers_count":11,"open_issues_count":2,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-08-12T06:43:59.958Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/modulr.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}},"created_at":"2015-10-12T23:09:53.000Z","updated_at":"2018-10-01T14:59:51.000Z","dependencies_parsed_at":"2022-08-31T03:01:31.127Z","dependency_job_id":null,"html_url":"https://github.com/modulr/mdr-angular-file","commit_stats":null,"previous_names":["modulr/angular-file"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/modulr/mdr-angular-file","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modulr%2Fmdr-angular-file","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modulr%2Fmdr-angular-file/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modulr%2Fmdr-angular-file/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modulr%2Fmdr-angular-file/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/modulr","download_url":"https://codeload.github.com/modulr/mdr-angular-file/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modulr%2Fmdr-angular-file/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018010,"owners_count":26086237,"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-10-14T02:00:06.444Z","response_time":60,"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":[],"created_at":"2025-10-14T05:51:38.750Z","updated_at":"2025-10-14T05:51:47.206Z","avatar_url":"https://github.com/modulr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Angular File\nAngular File is an Angularjs component that can upload files via XMLHttpRequest, provides drag \u0026 drop support.\n\n- Backend and Frontend [examples](https://github.com/Modulr/mdr-angular-file/tree/master/examples)\n\n![](http://modulr.io/img/preview/mdr-angular-file.png)\n\n##Features\n\n- Uses the native Angularjs scope for data binding\n- Drag \u0026 Drop\n- Multiple or single files uploads\n- Image preview\n- Update progress\n- Large files support\n\n\n##Requirements\n\n- [Angularjs](https://angularjs.org/)\n- [Bootstrap 3.](http://getbootstrap.com/)\n\n##Quick start\n\nSeveral quick start options are available:\n\n- [Download the latest release](https://github.com/Modulr/mdr-angular-file/archive/master.zip)\n- Clone the repo: `git clone https://github.com/Modulr/mdr-angular-file.git`.\n- Install with [Bower](http://bower.io/): `bower install mdr-angular-file`.\n- Install with [npm](https://www.npmjs.com): `npm install mdr-angular-file`.\n\n##What's included\n\n```\nmdr-angular-file/\n  dist/\n    ├── mdr-file.css\n    ├── mdr-file.min.css\n    ├── mdr-file.js\n    └── mdr-file.min.js\n```\n\n##Documentation\n\n####Usage\n\n######Load CSS\n\n```html\n\u003clink href=\"mdr-angular-file/dist/mdr-file.min.css\"\u003e\n```\n\n######Load JS\n\n```html\n\u003cscript href=\"mdr-angular-file/dist/mdr-file.min.js\"\u003e\u003c/script\u003e\n```\n\n######Code\n\n```js\nangular.module('MyApp', ['mdr.file'])\n```\n\n######HTML View or Templates\n\n\u003e Basic Directive\n\n```html\n\u003cmdr-file url=\"upload.php\"\u003e\u003c/mdr-file\u003e\n```\n\n\u003e Complete Directive (All attributes)\n\n```html\n\u003cmdr-file url=\"upload.php\" model=\"model\" data=\"{hola:'mundo'}\" headers=\"{token:'shhh'}\" size=\"5\" limit=\"10\" formats=\"'jpg,png,gif'\" disabled=\"true\" multiple=\"true\" text=\"Arrastra o haz clic aquí\"\u003e\u003c/mdr-file\u003e\n```\n\n####API\n\n######Attributes\n\nAttribute | Type | Description\n--- | --- | ---\nurl | `string` | *Is the path on the server where the file will be uploaded.* **Note:** *The parameter received on the server is* `file`\nmodel | `object` | *It is the scope model where will be received to response the server.*\ndata | `object` | *Data to be sent to the server.*\nheaders | `object` | *Send headers to the server.*\nsize | `number` | *Max size in MB to file.*\nlimit | `number` | *Max number files to upload.*\nformats | `string,array` | *Extensions permitted to the file.*\nmultiple | `boolean` | *If required to upload a multiple file is marked as true.*\ndisabled | `boolean` | *If required disable the component is marked as true.*\ntext | `string` | *Text into area drag and drop.*\n\n##How to contribute\n\nAll contributions are very welcome, We love it. There are several ways to help out:\n\n- Create an [issue](https://github.com/Modulr/mdr-angular-file/issues) on GitHub, if you have found a bug\n- Write test cases for open bug issues\n- Write patches for open bug/feature issues, preferably with test cases included\n- Contribute to the documentation\n\nThere are a few guidelines that we need contributors to follow so that we have a chance of keeping on top of things.\n\nIf you want to making changes Better avoid working directly on the `master` branch, to avoid conflicts if you pull in updates from origin, so, if make your contribution under the branch [`dev`](https://github.com/Modulr/mdr-angular-file/tree/dev), into folder `src/`.\n\n##Community\n\n- Implementation help may be found at Stack Overflow (tagged [`mdr-file`](http://stackoverflow.com/questions/tagged/mdr-file)).\n\n##Creators\n\n[@AlfredoBarronC](https://twitter.com/AlfredoBarronC)\n\n## Copyright and license\n\nCode and documentation (c) Copyright 2015 Modulr. Code published under [license MIT](https://github.com/Modulr/mdr-angular-file/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodulr%2Fmdr-angular-file","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmodulr%2Fmdr-angular-file","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodulr%2Fmdr-angular-file/lists"}