Coder Social home page Coder Social logo

itslenny / angular-bootstrap-file-field Goto Github PK

View Code? Open in Web Editor NEW
37.0 37.0 25.0 17 KB

A pure angular (no jquery) file field that functions like the native file input field but is displayed as a bootstrap button (also works without bootstrap see "styling" below) instead of the ugly system file upload field.

Home Page: http://itslenny.github.io/angular-bootstrap-file-field/

License: MIT License

JavaScript 26.45% Shell 10.04% HTML 63.51%

angular-bootstrap-file-field's People

Contributors

itslenny avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

angular-bootstrap-file-field's Issues

Illegal Invocation

In my code and in your demo an "Illegal Invocation" error occurs when you select a file. This doesn't stop it from working but it does produce unnerving console output.

Class Attribute

When I add a class attribute with some fun bootstrapy things like btn-block it breaks the styling. It would be nice to have these classes pass through to the actual input element.

Issue with Safari (Windows 7)

Hi,

I use your directive, and today while testing my application i discover that with Safari [version: 5.1.7(7534.57.2)] with Windows 7 it just don't work (even with your demo)

Edit: work just fine on Mac and safari [version: 8.0.8 (10600.8.9)]

Consider supporting Angular 1.4

When installing your project from bower I receive the error

bower-asset/angular-bootstrap-file-field 0.1.3 requires bower-asset/angular ~1.3.0 -> no matching package found.

This is because you define "angular": "~1.3.0" on your dependencies.

Any chance supporting 1.4?

Cannot use dot-notation for preview

If preview is using dot notation, no preview is saved to the corresponding variable:

<file-field ng-model="myfile.file" preview="myfile.preview">Add File</file-field>

myfile.preview will not contain preview in such a case.

Provide it with npm

Could you release this library on npm please ?
I am switching a project from bower to npm, and your lib breaks the stuff.
Thanks

cannot upload same file twice.

I need to be able to upload same file twice. It don't work. I tried many things. Below is my simple code.

<file-field class="btn btn-primary" ng-model="uploadRRPair" ng-change="uploadAndExtractZip()" ng-disabled="!bulkUpload.type">
                <i class="glyphicon glyphicon-import"></i> Upload File</file-field>

TypeError: Illegal invocation

Hi,

While selecting the file, the bellow error is showing in CHROME Browser console

TypeError: Illegal invocation
at fa (angular.js:925)
at fa (angular.js:925)
at l.$digest (angular.js:14224)
at angular.js:14427
at e (angular.js:4902)
at angular.js:5282
(anonymous) @ angular.js:11598
(anonymous) @ angular.js:8548
$digest @ angular.js:14248
(anonymous) @ angular.js:14427
e @ angular.js:4902
(anonymous) @ angular.js:5282

Form Edge Browser Console
TypeError: Invalid calling object
at fa (https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.11/angular.min.js:12:462)
at fa (https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.11/angular.min.js:12:462)
at l.prototype.$digest (https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.11/angular.min.js:123:393)
at Anonymous function (https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.11/angular.min.js:126:268)
at e (https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.11/angular.min.js:40:337)
at Anonymous function (https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.11/angular.min.js:44:375)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.