Git Product home page Git Product logo

Comments (6)

nervgh avatar nervgh commented on June 15, 2024

Hi, @TrkiSF2
Thanks!

I would like to ask how can i allow only one file (no multiple) to drag and drop?

  1. You can add a filter
uploader.filters.push(function() {
    return uploader.queue.length !== 1; // only one file in the queue
});
  1. You can remove a item after adding it to the queue
uploader.bind('afteraddingfile', function() {
    uploader.queue.length !== 1 && uploader.queue.pop(); // only one file in the queue
});

formData is array of objects
https://github.com/nervgh/angular-file-upload/blob/master/examples/simple/controllers.js#L11

from angular-file-upload.

EnchanterIO avatar EnchanterIO commented on June 15, 2024

Okay awesome man! Works just dont know how to retrieve the data in upload.php

------WebKitFormBoundaryooHCCJv9rXgczoW0
Content-Disposition: form-data; name="path"

/uploads/groups

How to get the "/uploads/groups" string please?

from angular-file-upload.

nervgh avatar nervgh commented on June 15, 2024
$_POST['key']

from angular-file-upload.

ubaidazad avatar ubaidazad commented on June 15, 2024

file-upload error
@nervgh getting uploader.bind is not a function.

from angular-file-upload.

nervgh avatar nervgh commented on June 15, 2024

@ubaidazad uploader.bind was in <2.0.0

from angular-file-upload.

nachehre avatar nachehre commented on June 15, 2024

Hi firends. any body can help me to give a complete sample for angular file upload nervgh. i am very confused about use of this component. tnx so much

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.