python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
FormData everything converting to string even arrays
const formData = new FormData()
formData.append('choices', [1, 2, 3])
choices converted to
'1,2,3'
And this is sent to node js which fails zod valdation because it is expecting array. this also same...
Eivydas Vickus
Votes: 0
Answers: 2
PHP $_POST variables are null when sending FormData() in a fetch request
I am sending FormData() to a PHP script with the following JS:
async function callFetch(url, body, accept) {
let headers = accept ? {"Content-Type":"application/x-www-form-urlencode...
SpyFromWarcraft3
Votes: 0
Answers: 1
Funtions with two parameter not working in React
I have 2 files. One of them is "http" folder for requests, the other one is React Component. I have a problem when I want to change the form and upload a profile photo. Changing form is work...
Rahil Ali
Votes: 0
Answers: 1
why FormData is empy in angular
I'm using angular to send a request to server to add a picture
but when I log the formData, formData doesn't have anything, I've checked, file exists, file is not empty file exists but it doesn't appe...
Matin Parsapour
Votes: 0
Answers: 1