All Projects → bjsawyer → mat-file-upload

bjsawyer / mat-file-upload

Licence: other
A simple & configurable Angular Material file upload component.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to mat-file-upload

Angular File Uploader
Angular file uploader is an Angular 2/4/5/6/7/8/9/10 + file uploader module with Real-Time Progress Bar, Responsive design, Angular Universal Compatibility, localization and multiple themes which includes Drag and Drop and much more.
Stars: ✭ 92 (+557.14%)
Mutual labels:  upload, file
React Files
A file input (dropzone) management component for React
Stars: ✭ 126 (+800%)
Mutual labels:  upload, file
Laravel Filemanager Example 5.3
Demo integration for laravel-filemanager (https://github.com/UniSharp/laravel-filemanager).
Stars: ✭ 100 (+614.29%)
Mutual labels:  upload, file
Laravel Simple Uploader
Simple file uploader for Laravel 5.
Stars: ✭ 59 (+321.43%)
Mutual labels:  upload, file
svelte-filepond
🔌 A handy FilePond adapter component for Svelte
Stars: ✭ 188 (+1242.86%)
Mutual labels:  upload, file
Nodestream
Storage-agnostic streaming library for binary data transfers
Stars: ✭ 70 (+400%)
Mutual labels:  upload, file
Jquery Filepond
🔌 A handy FilePond wrapper for jQuery
Stars: ✭ 124 (+785.71%)
Mutual labels:  upload, file
Droply Js
Droply JS, a new responsive and cross browser chunk uploader with DragDrop and File Preview capabilities (HTML5/CSS3)
Stars: ✭ 50 (+257.14%)
Mutual labels:  upload, file
Publicleech
can be found on Telegram as https://telegram.dog/PublicLeechGroup
Stars: ✭ 236 (+1585.71%)
Mutual labels:  upload, file
Ngx Material File Input
File input for Angular Material form-field
Stars: ✭ 193 (+1278.57%)
Mutual labels:  upload, file
Fileuploaderplugin
Simple cross platform plugin to upload files.
Stars: ✭ 59 (+321.43%)
Mutual labels:  upload, file
PHP-FileUpload
Simple and convenient file uploads — secure by default
Stars: ✭ 53 (+278.57%)
Mutual labels:  upload, file
Angular Filepond
🔌 A handy FilePond adapter component for Angular
Stars: ✭ 59 (+321.43%)
Mutual labels:  upload, file
Vue Filepond
🔌 A handy FilePond adapter component for Vue
Stars: ✭ 1,263 (+8921.43%)
Mutual labels:  upload, file
File Dialog
Trigger the upload file dialog directly from your code easily.
Stars: ✭ 51 (+264.29%)
Mutual labels:  upload, file
Laravel Filemanager
Media gallery with CKEditor, TinyMCE and Summernote support. Built on Laravel file system.
Stars: ✭ 1,688 (+11957.14%)
Mutual labels:  upload, file
React Filepond
🔌 A handy FilePond adapter component for React
Stars: ✭ 1,024 (+7214.29%)
Mutual labels:  upload, file
Uploader
A lightweight and very configurable jQuery plugin for file uploading using ajax(a sync); includes support for queues, progress tracking and drag and drop.
Stars: ✭ 1,042 (+7342.86%)
Mutual labels:  upload, file
Uploadcare Widget
Uploadcare Widget, an ultimate tool for HTML5 file upload supporting multiple file upload, drag&drop, validation by file size/file extension/MIME file type, progress bar for file uploads, image preview.
Stars: ✭ 183 (+1207.14%)
Mutual labels:  upload, file
react-simple-file-input
Simple wrapper for the HTML input tag and HTML5 FileReader API
Stars: ✭ 29 (+107.14%)
Mutual labels:  upload, file

Angular Material File Upload npm Build Status

This tool is a simple & configurable file upload component for use with Angular Material.

Live Demo: https://bjsawyer.github.io/mat-file-upload/

Screen Shot 2019-04-24 at 8 40 27 PM

Prerequisites

In order to use mat-file-upload in your app, you must have the following dependencies installed:

Usage

  1. Install package from npm (npm i mat-file-upload).
  2. Add MatFileUploadModule to your module's imports, like so:
@NgModule({
  declarations: [AppComponent],
  imports: [
    ...
    MatFileUploadModule,
    ...
  ],
  providers: [],
  bootstrap: [AppComponent],
})
export class AppModule {}
  1. Add the element to your template, like so:

Basic:

<mat-file-upload></mat-file-upload>

Advanced:

<mat-file-upload
  [labelText]="'Select a file (or multiple) to upload:'"
  [selectButtonText]="'Choose File(s)'"
  [selectFilesButtonType]="button"
  [uploadButtonText]="'Submit'"
  [uploadButtonType]="submit"
  [allowMultipleFiles]="true"
  [showUploadButton]="true"
  [customSvgIcon]="'close_custom'"
  [acceptedTypes]="'.png, .jpg, .jpeg'"
  (uploadClicked)="onUploadClicked($event)"
  (selectedFilesChanged)="onSelectedFilesChanged($event)"
>
</mat-file-upload>

Options

@Input() Properties

Directive Type Description Default Value
[labelText] string The text to be displayed for the file upload label "Select file(s)"
[selectButtonText] string The text to be displayed for the button that allows the user to select file(s) "Select file(s)"
[selectFilesButtonType] string The HTML "type" attribute of the "Select Files" button "button"
[uploadButtonText] string The text to be displayed for the button that allows the user to upload file(s) "Upload File(s)"
[uploadButtonType] string The HTML "type" attribute of the "Upload" button "button"
[allowMultipleFiles] boolean True/false representing whether the user can select multiple files at a time false
[showUploadButton] boolean True/false representing whether the "Upload" button is shown in the DOM true
[customSvgIcon] string The name of the custom svgIcon to be used as the "close" button; otherwise defaults to Material's "close" icon null
[acceptedTypes] string The list of file types that are allowed to be uploaded "*.*"

@Output() Properties

Directive Type Description
(uploadClicked) EventEmitter<FileList> Event handler that emits the list of selected files whenever the "Upload" button is clicked
(selectedFilesChanged) EventEmitter<FileList> Event handler that emits the list of selected files whenever the user changes file selection
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].