Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File Not found Error #94

Closed
Sharique-Hasan opened this issue Jan 9, 2018 · 3 comments
Closed

File Not found Error #94

Sharique-Hasan opened this issue Jan 9, 2018 · 3 comments

Comments

@Sharique-Hasan
Copy link

On Nexus 6 with Android 7.1.1, plugin gives out an error of file not found. Where as on other devices it works fine.

Sample project: https://github.com/mrazahasan/imagePicker

@VladimirAmiorkov VladimirAmiorkov self-assigned this Jan 12, 2018
@lini
Copy link
Contributor

lini commented Jan 15, 2018

Hi,

Do you still experience the issue? I tried to reproduce it using the sample project but saw no errors. If possible, give us more detailed steps on how to trigger the error.

Device: Nexus 6 with Android 7.1.1
NativeScript: 3.4.1

I cloned the repo, ran "npm i", "tns run android" and then proceeded to try all three options: open camera, open image picker and open video picker. I saw no "file not found" error in the console and the three files uploaded successfully. Here is the console log:

JS: [{"name":"NSIMG_20180115_14332.jpg","filename":"/storage/emulated/0/DCIM/Camera/NSIMG_20180115_14332.jpg","mimeType":"image/jpg"}]
JS: Upload: 0.01789722899760177
JS: Upload: 35.20528121660249
JS: Upload: 96.36430576648718
JS: /storage/emulated/0/DCIM/Camera/NSIMG_20180115_14332.jpg
JS: [{"name":"NSIMG_20180115_14332.jpg","filename":"/storage/emulated/0/DCIM/Camera/NSIMG_20180115_14332.jpg","mimeType":"image/jpg"}]
JS: Upload: 0.01789722899760177
JS: Upload: 35.20528121660249
JS: Upload: 95.52651090963946
JS: Upload: 100
JS: complete
JS: Upload: 100
JS: complete
JS: /storage/emulated/0/DCIM/Camera/VID_20180115_143406.mp4
JS: [{"name":"VID_20180115_143406.mp4","filename":"/storage/emulated/0/DCIM/Camera/VID_20180115_143406.mp4","mimeType":"video/mp4"}]
JS: Upload: 0.0026452247500683094
JS: Upload: 5.263492672192281
JS: Upload: 14.40734656893708
JS: Upload: 23.175425648007437
JS: Upload: 30.440405456380017
JS: Upload: 38.83270971777593
JS: Upload: 47.09975570661369
JS: Upload: 55.61731824056775
JS: Upload: 64.1348807745218
JS: Upload: 71.39986058289438
JS: Upload: 79.04061520894142
JS: Upload: 87.55817774289547
JS: Upload: 95.57470718661693
JS: Upload: 100
JS: complete

@Sharique-Hasan
Copy link
Author

Sharique-Hasan commented Jan 15, 2018 via email

@Sharique-Hasan
Copy link
Author

Looks like it is not an issue with browsed file. This was an issue with nativescript-videorecorder. This plugin was not creating the file on Nexus6 therefore nativescript-background-http was unable to find the file. Closing the issue now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants