Git Product home page Git Product logo

Comments (6)

bettysteger avatar bettysteger commented on June 15, 2024

ok i found a solution and created my own directive without the following line of yours:
window.File && element.prop('value', null);

why don't you want to see the value next to the button?

from angular-file-upload.

nervgh avatar nervgh commented on June 15, 2024

why don't you want to see the value next to the button?

  • User can select multiple files.
  • User can select multiple files whereupon he can select other files and send all these selected files.

from angular-file-upload.

jsanders avatar jsanders commented on June 15, 2024

@nervgh: Makes sense. It would be pretty nice if we could configure angular-file-upload in a "single file mode", which wouldn't null the value.

@lpsBetty: Have you published your directive anywhere that doesn't have this behavior anywhere?

from angular-file-upload.

bettysteger avatar bettysteger commented on June 15, 2024

@jsanders no I did not because i just copied the current directive code and removed one line, maybe we can just make a second directive in this module just for that single-file upload behaviour?

from angular-file-upload.

nervgh avatar nervgh commented on June 15, 2024

It would be pretty nice if we could configure angular-file-upload in a "single file mode", which wouldn't null the value

just now
https://github.com/nervgh/angular-file-upload/blob/master/src/scripts/directives/ngFileSelect.js#L17

from angular-file-upload.

jsanders avatar jsanders commented on June 15, 2024

Woot, looks great @nervgh. I haven't tried it out yet, but it looks like the right thing!

from angular-file-upload.

Related Issues (20)

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.