Comments (4)
Don't think any hacks are needed, check the Dropzone documentation how to do that.
from ngx-dropzone-wrapper.
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.
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.
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)
- Stackblitz example appears to be gone HOT 1
- How Do I Call processQueue Manually
- version 9.0.0 Cannot read property 'kind' of undefined HOT 3
- New 5.6.0 version of dropzone causing build errors with all versions of ngx-dropzone-wrapper HOT 3
- Ngxs with dropzone
- Remove file link resets entire form HOT 1
- how to pass filename on parameter HOT 1
- orientation not working when uploading an image only in chrome browser. HOT 1
- how to stop the upload
- Unsupported DropzoneEvents
- Support for Angular 10 HOT 2
- DropzoneHeadersFunction action not working
- TypeError: dropzone__WEBPACK_IMPORTED_MODULE_1__ is not a constructor HOT 17
- addedFile/addedFiles missing from DropzoneConfigInterface?
- Images sent directly from mobile get rotated by 90 degrees. HOT 1
- Problem with ssr self is not defined HOT 6
- OnAddedFile event not fired in version 10.0.1 HOT 1
- Generating browser application bundles (phase: setup)...Processing legacy "View Engine" libraries HOT 1
- Can't import the named export 'CommonModule' from non EcmaScript module (only default export is available) HOT 1
- Generic type 'eeDirectiveDeclaration' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-dropzone-wrapper.