You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am do a file into formData ,but get the file is null ,I can't quest is where ,thanks !
I have a small code ,The formdata value cannot be obtained in the other method, and the transfer to the java backend file is also empty 。
const formData = new FormData();
const handleUpLoad=(event) =>{
console.log("=="+event.target.files[0]);
formData.append("files",event.target.files[0])
}
Drop the files here ...
:Drag 'n' drop some files here, or click to select files
}Beta Was this translation helpful? Give feedback.
All reactions