NativeScript / nativescript-background-http

Background Upload plugin for the NativeScript framework
Apache License 2.0
102 stars 50 forks source link

Sample demo-angular/demo-server multipartUpload failed #211

Closed tqhsonoma closed 5 years ago

tqhsonoma commented 5 years ago

Hello,

I am trying out the sample demo-angular and demo-server apps without any changes. On both IOS and Android platforms, I can run the uploadFile() without any issue. However, the multipartUpload() would run to completion but failed to create the proper file. All status updates and byte counts are displaying correctly as the file is being transferred, but in the end the file sizes are different, and the result file is not a valid file.

File Info for the bigpic.jpg before the transfer in the home folder: image

File Info for the transferred file in the uploads folder: image

Thanks for your help. Thai

Make sure to check the demo app(s) for sample usage

Using the demo-angular and demo-server unchanged on MacOs Mojave 10.14.3

Make sure to check the existing issues in this repository

Searched and did not find any relating issues

Which platform(s) does your issue occur on?

Please, provide the following version numbers that your issue occurs with:

Project package.json file:

{ "description": "NativeScript Application", "license": "SEE LICENSE IN ", "readme": "NativeScript Application", "repository": "", "nativescript": { "id": "org.nativescript.demoangular", "tns-ios": { "version": "5.2.0" }, "tns-android": { "version": "5.2.1" } }, "scripts": { "build.plugin": "cd ../src && npm run build", "ci.tslint": "npm i && tslint --config '../tslint.json' 'app/*/.ts' --exclude '/node_modules/'" }, "dependencies": { "@angular/animations": "~7.2.0", "@angular/common": "~7.2.0", "@angular/compiler": "~7.2.0", "@angular/core": "~7.2.0", "@angular/forms": "~7.2.0", "@angular/http": "~7.2.0", "@angular/platform-browser": "~7.2.0", "@angular/platform-browser-dynamic": "~7.2.0", "@angular/router": "~7.2.0", "nativescript-angular": "~7.2.0", "nativescript-background-http": "../src", "nativescript-theme-core": "~1.0.4", "reflect-metadata": "~0.1.10", "rxjs": "^6.3.3", "tns-core-modules": "^5.3.1", "tns-platform-declarations": "^5.0.0", "zone.js": "~0.8.26" }, "devDependencies": { "nativescript-dev-typescript": "~0.9.0", "nativescript-dev-webpack": "~0.21.0", "tslint": "~5.11.0", "@angular/compiler-cli": "~7.2.0", "@ngtools/webpack": "~7.2.0" } }

Please, tell us how to recreate the issue in as much detail as possible.

Describe the steps to reproduce it.

git clone https://github.com/NativeScript/nativescript-background-http.git npm run build.plugin npm install cd projects/nativescript-background-http tns build ios (or android) tns run ios (or android)

Is there any code involved?

No code is involved, running the code samples unmodified

support[bot] commented 5 years ago

:wave: @TQHSonoma, we use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please, use Stackoverflow to get help.