Comments (6)
This is caused because of the default value for headers setting the Content-Type manually to multipart/form-data . If the header is manually set the browser stops setting the header by itself with the boundary property.
As a workaround you can just overwrite the default setting like this
`<mat-file-upload-queue #fileUploadQueue
[fileAlias]="'file'"
[httpUrl]="'http://localhost:8089/upload'"
[httpRequestHeaders]="{}">
<mat-file-upload [file]="file" [id]="i" *ngFor="let file of fileUploadQueue.files; let i = index">
`
[httpRequestHeaders]="{}" will unset the default header which will lead to the behavior that the browser will set the Content-type including boundary attribute
Tested with Chrome
from angular-material-fileupload.
agreed. But this update has never been made in master. I am surprised. looks the repo owner does not follow up this repo.
from angular-material-fileupload.
Just pushed 1.0.0 (angular 6), made the default httpheaders for upload and queue as empty. Please check.
from angular-material-fileupload.
Please try 1.0.1.
from angular-material-fileupload.
@theGirlWithTheDragonTattoo Did you get a chance to try this version?
from angular-material-fileupload.
@theGirlWithTheDragonTattoo Closing this issue, Please let me know if you see any other issues.
from angular-material-fileupload.
Related Issues (20)
- getting error NullInjectorError: No provider for MatFileUploadQueue! HOT 6
- ERROR in node_modules/@angular/core/src/render3/ng_dev_mode.d.ts(9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'. HOT 3
- No longer working with Angular 8 (DOCUMENT import from @angular/platform-browser)
- not working HOT 1
- NullInjectorError: No provider for ElementRef! -- Angular 8 HOT 7
- No Validation Support
- How to get the response from the server HOT 1
- NullInjectorError HOT 10
- Failed to find the exported name of node HOT 9
- Not working in Angular 10.1.4 HOT 6
- No File Type Restrictions
- can't compile angular-material-fileupload
- Not working with Angular 9.0.7 HOT 1
- Content Type is set to application/json HOT 1
- Not Working with New Angular Versions - Solution HOT 1
- Upload single file HOT 1
- Support Injecting custom MatFileUploadQueueService
- Can we upload file in chunks ?
- Is there support for using Firebase Auth to save to Firebase Storage - seems as though this does not work
- No support for Angular 9+
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 angular-material-fileupload.