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



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?


Are you using nativescript-camera plugin for capturing image?


yes i use thats plugin


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 in Android, imageAsset.ios may return PHAsset in iOS, you will have to retrieve the URL from that.


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