Skip to content

imapi/angular-upload-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Angular directives for uploading

Description

This is a partial fork of Mischi imageupload directive.

In the future this would be a set of uploading directives for different kind of files.

Run

  git clone https://github.com/imapi/angular-upload-image.git
  cd angular-upload-image
  npm install
  node app.js

Usage

            <upload-image
                src="http://localhost:8080/upload/test.jpg"
                post="upload"
                max-height="100"
                max-width="100"
                quality = "1"
                after-event = "update"
                spinner="true">
            </upload-image>

Where:

src - image src

post - url to post the new image

max-height - max height for the image

max-widht - max width for the image

quality - encoding quality (jpg)

after-event - event name which would be triggered after successful uploading, you can handle it via $scope.$on('event name')

spinner - show uploading spinner

#Dependencies

#License MIT

#Notes Must work in all modern browsers, including new Safari 6

About

Angular directives for uploading

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published