Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49236

TypeError: formdata.set is not a function

$
0
0

@charlestsmith wrote:

Hello All,
I’m using FormData for one of my ajax call in Ionic.
var formdata = new FormData();
formdata.set(‘action’, “myActionName”);
formdata.set(‘senderId’, data.senderId);
formdata.set(‘friendId’, data.friendId);

its working perfectly okay on Android but on iOS it says:
TypeError: formdata.set is not a function. (In ‘formdata.set(‘action’, “myActionName”)’, ‘formdata.set’ is undefined)

Anyone know how to define the formdata.set?

Thanks in Advance!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49236

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>