Guest User

Untitled

a guest
Dec 12th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. myFormData = new FormData();
  2. myFormData.append("file", fileContent, "filename.txt");
  3. fetch("http://example.com/fileupload.php", {
  4. method: "post",
  5. body: myFormData
  6. });
Add Comment
Please, Sign In to add comment