Giter Site home page Giter Site logo

Comments (4)

sconix avatar sconix commented on August 16, 2024

Don't think any hacks are needed, check the Dropzone documentation how to do that.

from ngx-dropzone-wrapper.

nileshyadav326 avatar nileshyadav326 commented on August 16, 2024

as per the documentation, hidden data will auto submitted.
https://github.com/enyo/dropzone/wiki/FAQ#how-to-submit-additional-data-along-the-file-upload

but I want to submit other fields type (i.e text , radio ) data also.

from ngx-dropzone-wrapper.

sconix avatar sconix commented on August 16, 2024

There is also documentation saying that all form inputs are included not just hidden, don't know which is true. Quick look at the code makes me think that all inputs are included, but don't know. Anyway this is more of a question for Dropzone that for this wrapper.

from ngx-dropzone-wrapper.

nileshyadav326 avatar nileshyadav326 commented on August 16, 2024

ok I tried this option and able to send the other params

 public config2: DropzoneConfigInterface = {
        server: 'https://httpbin.org/post',
        paramName: 'imageFile1',
        sending: function (file, xhr, formData) {
            formData.append("insurance_type", 'test');  //name and value
            formData.append("insurance_expirationdate", 'tests'); //name and value

        }
    };

from ngx-dropzone-wrapper.

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.