From df3a9fc7bd24553263c3698b6b2454620f9c837e Mon Sep 17 00:00:00 2001 From: Danial Farid Date: Thu, 30 Apr 2015 15:42:28 -0400 Subject: [PATCH] Update README.md --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3710cf93..43749db4 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Table of Content: * [Questions, Issues and Contribution](#contrib) ## Features -* Supports upload progress, cancel/abort upload while in progress, File drag and drop (html5), Directory drag and drop (webkit), CORS, `PUT(html5)`/`POST` methods, validation of file type and size, show thumbnail/preview of selected images. +* Supports upload progress, cancel/abort upload while in progress, File drag and drop (html5), Directory drag and drop (webkit), CORS, `PUT(html5)`/`POST` methods, validation of file type and size, show preview of selected images/audio/videos. * Cross browser file upload (`HTML5` and `non-HTML5`) with Flash polyfill [FileAPI](https://github.com/mailru/FileAPI). Allows client side validation/modification before uploading the file * Direct upload to db services CouchDB, imgur, etc... with file's content type using `Upload.http()`. This enables progress event for angular http `POST`/`PUT` requests. * Seperate shim file, FileAPI files are loaded on demand for `non-HTML5` code meaning no extra load/code if you just need HTML5 support. @@ -37,12 +37,15 @@ Table of Content: watching model:
Upload using model $watch
Upload on file change
- Image thumbnail: Drop File:
Drop Images or PDFs files here
File Drag/Drop is not supported for this browser
+ + Image thumbnail: + Audio preview: + Video preview: ``` JS: @@ -117,8 +120,8 @@ app.controller('MyCtrl', ['$scope', 'Upload', function ($scope, Upload) { Drop files here File Drag/drop is not supported - + //To preview the selected file, sets src attribute to the file's data url. + ``` #### Upload service: