How to get file name from image capture and upload image to server?

android

#1

i need some help to grab file name from capture image and going upload image to server.
any one have example to help my problem?


#2

Are you using nativescript-camera plugin for capturing image?


#3

yes i use thats plugin


#4

May I know why you need the file name here as it will be just a sequence number usually generated by camera app?

Still, if you need it you may use imageAsset.android in Android, imageAsset.ios may return PHAsset in iOS, you will have to retrieve the URL from that.


#5

i want to post filename to database table and upload image to server.