{"id":13637444,"url":"https://github.com/nishantmc/angular-material-fileupload","last_synced_at":"2025-04-19T08:34:11.102Z","repository":{"id":28252254,"uuid":"115052805","full_name":"nishantmc/angular-material-fileupload","owner":"nishantmc","description":"A fileupload component based on angular-material design","archived":false,"fork":false,"pushed_at":"2023-01-07T02:18:34.000Z","size":19105,"stargazers_count":98,"open_issues_count":67,"forks_count":78,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-04-15T00:50:27.964Z","etag":null,"topics":["angular-material","angular5","angular6","fileupload","javascript"],"latest_commit_sha":null,"homepage":null,"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/nishantmc.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":"2017-12-21T22:30:46.000Z","updated_at":"2023-12-18T20:54:13.000Z","dependencies_parsed_at":"2022-09-09T19:00:16.621Z","dependency_job_id":null,"html_url":"https://github.com/nishantmc/angular-material-fileupload","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nishantmc%2Fangular-material-fileupload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nishantmc%2Fangular-material-fileupload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nishantmc%2Fangular-material-fileupload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nishantmc%2Fangular-material-fileupload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nishantmc","download_url":"https://codeload.github.com/nishantmc/angular-material-fileupload/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223795268,"owners_count":17204137,"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":["angular-material","angular5","angular6","fileupload","javascript"],"created_at":"2024-08-02T00:01:17.512Z","updated_at":"2024-11-09T06:31:19.551Z","avatar_url":"https://github.com/nishantmc.png","language":"TypeScript","readme":"# angular-material-fileupload [![npm version](https://badge.fury.io/js/angular-material-fileupload.svg)](https://badge.fury.io/js/angular-material-fileupload)\n\nA fileupload component based on angular-material design\n\n# Documentation\n\n[angular-material-fileupload API doc](https://nishantmc.github.io/angular-material-fileupload.github.io/)\n\n# Demo\n\n# Setup\n\nThe module to be imported is \"MatFileUploadModule\"\n\n```Typescript\n\nimport { NgModule } from '@angular/core';\nimport { BrowserModule }  from '@angular/platform-browser';\nimport { MatButtonModule } from '@angular/material';\n\nimport { AppComponent } from './app.component';\nimport { MatFileUploadModule } from 'angular-material-fileupload';\n\n@NgModule({\n  imports: [\n    MatButtonModule,\n    BrowserModule,\n    MatFileUploadModule\n  ],\n  declarations: [\n    AppComponent\n  ],\n  bootstrap: [ AppComponent ]\n})\nexport class AppModule { }\n\n```\n\n# File upload Example\n\n![Screenshot](SingleFileDemo.gif)\n\n```HTML\n\u003clabel for=\"singleFile\"\u003eUpload file\u003c/label\u003e\n\u003cinput id=\"singleFile\" type=\"file\" [fileUploadInputFor]= \"fileUploadQueue\"/\u003e\n\u003cbr\u003e\n\n\u003cmat-file-upload-queue #fileUploadQueue\n    [fileAlias]=\"'file'\"\n    [httpUrl]=\"'http://localhost:8180/jax-rs-jersey-application-sample'\"\u003e\n\n    \u003cmat-file-upload [file]=\"file\" [id]=\"i\" *ngFor=\"let file of fileUploadQueue.files; let i = index\"\u003e\u003c/mat-file-upload\u003e\n\u003c/mat-file-upload-queue\u003e\n```\n\n**Notes**\n\n- 'fileUploadQueue' is the template input variable which point to the queue. You can see its created in the queue tag (#fileUploadQueue). Basically pointing the input to the queue\n- fileAlias and httpUrl are input variables which you can bind. 'fileAlias' - as you might guess just the alias of the file. and 'httpUrl' is the url you want to do POST with multipart data.\n\n# Drag and drop example\n\n![Screenshot](DragAndDropDemo.gif)\n\n```HTML\n\n\u003cdiv [fileUploadInputFor]=\"fileUploadQueue\" class=\"upload-drop-zone\"\u003e\n    Just drag and drop files here\n\u003c/div\u003e\n\n\n\u003cdiv style=\"width: 500px\"\u003e\n    \u003cmat-file-upload-queue #fileUploadQueue\n        [fileAlias]=\"'file'\"\n        [httpUrl]=\"'http://localhost:8180/jax-rs-jersey-application-sample'\" multiple\u003e\n\n        \u003cmat-file-upload [file]=\"file\" [id]=\"i\" *ngFor=\"let file of fileUploadQueue.files; let i = index\"\u003e\u003c/mat-file-upload\u003e\n    \u003c/mat-file-upload-queue\u003e\n\u003c/div\u003e\n\n```\n\n# Example setting the inputs on mat-file-upload-queue\n\n```HTML\n\n\u003cdiv [fileUploadInputFor]=\"fileUploadQueue3\" class=\"upload-drop-zone\"\u003e\n  Just drag and drop files here\n\u003c/div\u003e\n\n\u003cdiv style=\"width: 500px\"\u003e\n  \u003cmat-file-upload-queue\n    #fileUploadQueue3\n    [httpUrl]=\"'http://localhost:8080/jax-rs-jersey-application-sample'\"\n    fileAlias=\"{{ fileAlias }}\"\n    [httpRequestHeaders]=\"httpRequestHeaders\"\n    [httpRequestParams]=\"httpRequestParams\"\n  \u003e\n    \u003cmat-file-upload\n      [file]=\"file\"\n      [id]=\"i\"\n      *ngFor=\"let file of fileUploadQueue3.files; let i = index\"\n    \u003e\u003c/mat-file-upload\u003e\n  \u003c/mat-file-upload-queue\u003e\n\u003c/div\u003e\n\n```\n\n# Example setting the inputs overridden on mat-file-upload\n\n```HTML\n\n\u003cdiv [fileUploadInputFor]=\"fileUploadQueue4\" class=\"upload-drop-zone\"\u003e\n  Just drag and drop files here\n\u003c/div\u003e\n\n\u003cdiv style=\"width: 500px\"\u003e\n  \u003cmat-file-upload-queue\n    #fileUploadQueue4\n    [httpUrl]=\"'http://localhost:8080/jax-rs-jersey-application-sample1'\"\n    fileAlias=\"{{ fileAlias }}\"\n    [httpRequestHeaders]=\"httpRequestHeaders\"\n    [httpRequestParams]=\"httpRequestParams\"\n  \u003e\n    \u003cmat-file-upload\n      [file]=\"file\"\n      [id]=\"i\"\n      *ngFor=\"let file of fileUploadQueue4.files; let i = index\"\n      [httpUrl]=\"'http://localhost:8080/jax-rs-jersey-application-sample'\"\n      fileAlias=\"{{ fileAlias1 }}\"\n      [httpRequestHeaders]=\"httpRequestHeaders1\"\n      [httpRequestParams]=\"httpRequestParams1\"\n    \u003e\u003c/mat-file-upload\u003e\n  \u003c/mat-file-upload-queue\u003e\n\u003c/div\u003e\n\n\n```\n","funding_links":[],"categories":["Angular"],"sub_categories":["Components"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnishantmc%2Fangular-material-fileupload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnishantmc%2Fangular-material-fileupload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnishantmc%2Fangular-material-fileupload/lists"}