{"id":18784909,"url":"https://github.com/ghostbar/angular-file-uploader","last_synced_at":"2025-09-11T09:36:17.498Z","repository":{"id":13578974,"uuid":"16271542","full_name":"ghostbar/angular-file-uploader","owner":"ghostbar","description":"Simple Angular.js service for file-uploading","archived":false,"fork":false,"pushed_at":"2016-01-15T02:34:58.000Z","size":441,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-13T15:59:38.771Z","etag":null,"topics":[],"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/ghostbar.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":"2014-01-27T06:51:10.000Z","updated_at":"2025-05-24T18:00:40.000Z","dependencies_parsed_at":"2022-08-31T01:01:44.033Z","dependency_job_id":null,"html_url":"https://github.com/ghostbar/angular-file-uploader","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/ghostbar/angular-file-uploader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostbar%2Fangular-file-uploader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostbar%2Fangular-file-uploader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostbar%2Fangular-file-uploader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostbar%2Fangular-file-uploader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghostbar","download_url":"https://codeload.github.com/ghostbar/angular-file-uploader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostbar%2Fangular-file-uploader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274609465,"owners_count":25316621,"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-09-11T02:00:13.660Z","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":[],"created_at":"2024-11-07T20:44:25.958Z","updated_at":"2025-09-11T09:36:17.456Z","avatar_url":"https://github.com/ghostbar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"angular-file-uploader [![Build Status](https://secure.travis-ci.org/ghostbar/angular-file-uploader.png)](http://travis.ci.org/ghostbar/angular-file-uploader) [![Code Climate](https://codeclimate.com/github/ghostbar/angular-file-uploader/badges/gpa.svg)](https://codeclimate.com/github/ghostbar/angular-file-uploader)\n=====================\n\nSimple Angular.js service for uploading files.\n\nInstallation\n------------\n\nInstall with bower:\n\n    bower install angular-file-uploader --save\n\nAdd to your HTML files:\n\n    \u003cscript src='/bower_components/angular-file-uploader/angular-file-uploader.js'\u003e\u003c/script\u003e\n\nNow, inject to your application:\n\n    angular.module('myApp', ['file-uploader']);\n\nDemo\n----\n\nYeah! Got a demo already! Check it out here, explains more in-depth that the usage section here:\n\n\u003chttp://plnkr.co/l63VJk\u003e\n\nUsage\n-----\nReady to use in your controllers!:\n\n`file.html`:\n\n    \u003cinput type='file' id='file-to-upload'\u003e\n    \u003cbutton type='button' ng-click='upload()'\u003eUpload\u003c/button\u003e\n\n`controller.js:`\n\n    angular.module('yourApp', ['file-uploader']);\n\n    angular.module('yourApp').controller('DemoCtrl', [\n      '$scope', \n      'FileUploader', \n      function ($scope, fileUploader) {\n        $scope.upload = function () {\n          var extraData = {\n            hey: 'Extra data'\n          };\n\n          fileUploader.post(\n            '/upload/end-point', \n            document.getElementById('file-to-upload').files, \n            extraData\n          )then(success, error, progress);\n        };\n      }\n    ]);\n\nFull API\n--------\n\n+ `FileUploader.post(url, files, config)`: makes a `POST` request.\n+ `FileUploader.put(url, files, config)`: makes a `PUT` request.\n+ `FileUploader.send(url, files, config)`: same as `.post()` but should not be used, is left just for compatibility with old implementations.\n+ `FileUploader.request(method, url, files, config)`: This is the base function, it may change so please use either `.post()` or `.put()` unless you actually need to use a different method (really?! which method are you using??!!).\n\nChanges on v1.0.0\n-----------------\n\n+ When loading the module just use `file-uploader` instead of `angular-file-uploader`.\n+ When loading the service in your controller/directive/service use `FileUploader`.\n+ Prefer to use `.post()` or `.put()` instead of the old `.send()` which should be deprecated in coming versions. `.request()` is available as well but use it only if necessary since this may change.\n\nAuthor\n------\n© 2014-2016, Jose-Luis Rivas `\u003cme@ghostbar.co\u003e`. \n\nLicense\n-------\nThe files are licensed under the MIT terms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghostbar%2Fangular-file-uploader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghostbar%2Fangular-file-uploader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghostbar%2Fangular-file-uploader/lists"}