NativeScript / nativescript-background-http

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

mimeType: for video files #216

Closed sylwesterdigital closed 5 years ago

sylwesterdigital commented 5 years ago

Hi, I am testing demo app for vuejs, trying to upload video files ie .MOV demo app crashes, this is output log, what is wrong?

CONSOLE LOG file:///app/bundle.js:223:18: 'Uploading file: /var/mobile/Containers/Data/Application/194ADF5F-16FC-4B27-AC95-86DC688943AA/Library/Application Support/LiveSync/app/files/IMG_0115.MOV'
*** JavaScript call stack:
(
0   uploadTaskWithRequestFromFile@[native code]
1   uploadFile@file:///app/vendor.js:6617:62
2   startUpload@file:///app/bundle.js:257:39
3   startUpload@[native code]
4   onUploadTap@file:///app/bundle.js:217:23
5   onUploadTap@[native code]
6   notify@file:///app/vendor.js:25449:23
7   _emit@file:///app/vendor.js:25477:18
8   tap@file:///app/vendor.js:37033:18
9   UIApplicationMain@[native code]
10  _start@file:///app/vendor.js:21739:22
11  run@file:///app/vendor.js:21781:9
12  $start@file:///app/vendor.js:21041:18
13  $start@file:///app/vendor.js:7529:25
14  @file:///app/bundle.js:635:10
15  ./main.js@file:///app/bundle.js:639:34
16  __webpack_require__@file:///app/bundle.js:76:34
17  checkDeferredModules@file:///app/bundle.js:45:42
18  @file:///app/bundle.js:149:38
19  anonymous@file:///app/bundle.js:150:12
20  evaluate@[native code]
21  moduleEvaluation@:1:11
22  promiseReactionJob@:1:11
23  require@[native code]
24  anonymous@file:///app/starter.js:2:8
25  evaluate@[na<\M-b\M^@\M-&>
)
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Cannot read file at file:///var/mobile/Containers/Data/Application/194ADF5F-16FC-4B27-AC95-86DC688943AA/Library/Application%20Support/LiveSync/app/files/IMG_0115.MOV'
*** First throw call stack:
(0x182d5ad8c 0x181f145ec 0x18339e1a4 0x18339f028 0x18339eedc 0x18339e3d0 0x18264cae4 0x182655640 0x18339e330 0x18339ee3c 0x105de8044 0x105de4c8c 0x105de4750 0x1052ad740 0x105de380c 0x105de2bd0 0x105de2bd0 0x105ddb870 0x105bd18d8 0x105b9d940 0x1053a055c 0x105de36e8 0x105de2bd0 0x105ddb870 0x105bd18d8 0x105b9d940 0x1053a055c 0x105de36e8 0x105de2bd0 0x105de2b5c 0x105de2bd0 0x105ddb870 0x105bd18d8 0x105b9d940 0x10530cde0 0x10530c974 0x10530cfd0 0x105de5578 0x105de81b4 0x18ca8a6c8 0x18cbab8a4 0x18ca9077c 0x18cbc61dc 0x18d06bdd8 0x18d068b50 0x182d02910 0x182d00238 0x182d00884 0x182c20da8 0x184c03020 0x18cc0178c 0x105de8044 0x105de4c8c 0x105de4750 0x1052ad740 0x105de380c 0x105de2bd0 0x105de2bd0 0x105de2bd0 0x105de2bd0 0x105de2bd0 0x<\M-b\M^@\M-&>
tgpetrov commented 5 years ago

Hi @sylwesterdigital It seems like you are experiencing this issue: https://github.com/NativeScript/nativescript-background-http/issues/191#issuecomment-448308267 Can you confirm?

sylwesterdigital commented 5 years ago

Hi @sylwesterdigital It seems like you are experiencing this issue: #191 (comment) Can you confirm?

Yes - I resolved the problem updating Info.plist. We can close that.

tgpetrov commented 5 years ago

Great!