Skip to content

Commit

Permalink
upload blob as file fix
Browse files Browse the repository at this point in the history
  • Loading branch information
usama-jarral committed Apr 5, 2018
1 parent e6327c9 commit 45cea4e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "ng-uploader",
"version": "2.0.7",
"version": "2.0.8",
"license": "MIT",
"angular-cli": {},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion pub-package.json
@@ -1,6 +1,6 @@
{
"name": "ng-uploader",
"version": "2.0.7",
"version": "2.0.8",
"license": "MIT",
"author": "Babar Bilal <babarxm2@gmail.com>",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/uploader/ng-uploader.ts
Expand Up @@ -111,7 +111,7 @@ export class NgUploader implements NgUploaderInterface {
const formData: FormData = new FormData();
this.xhr = new XMLHttpRequest();
this.xhr.open(vm.queue[index].options.type || 'POST', vm.queue[index].options.url, true);
formData.append('file', vm.queue[index].file);
formData.append('file', vm.queue[index].file, vm.queue[index].file.name);

for (const key in vm.queue[index].options.params) {
if (vm.queue[index].options.params[key]) {
Expand Down

0 comments on commit 45cea4e

Please sign in to comment.