Every line of 'new formdata' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
15 public data(): FormData { 16 var fd = new FormData(); 17 this._data.forEach(d => { 18 if (d.blobName) 19 fd.append(d.name, d.value, d.blobName); 20 else 21 fd.append(d.name, d.value); 22 }); 23 return fd; 24 }
Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code
62 function getFormData(file: File) { 63 const formData = new FormData(); 64 65 formData.append('file', file); 66 67 return formData; 68 }
14 constructor() { 15 this._data = new Map<string, string[]>() 16 }