Posts: 7
Joined: Tue Sep 01, 2020 7:11 pm

Urgent Help Needed - File Upload

I have a function in my app that lets the user take a picture and upload it to the database. I'm using the Cordova file upload plug-in and it works great. The problem is i need the filename back from the service so i can store it in another table that references that photo. No matter what I do, I can't get it back from the service. I setup the service response as an array as directed by support and found elsewhere on this forum, but the filename just won't populate the local variable. I know the response is an array, do i need to do something with the array before mapping the filename field from the response to my variable in the service success mapping? I will only ever be 1 file at a time that is uploaded and saved.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Re: Urgent Help Needed - File Upload


Please add the TypeScript on the success event of the upload service:

Code: Select all


The variable "res" contains a full response of the upload file request

Posts: 1
Joined: Sun Sep 13, 2020 8:07 am

Re: Urgent Help Needed - File Upload

Cordova is being developed as far as I know from the platform https://aduk.de/ ... maybe ask them)

Return to “Issues”