Skip to content

Instantly share code, notes, and snippets.

View its-kayes's full-sized avatar
❤️‍🔥
Playing with arrays

Kayes its-kayes

❤️‍🔥
Playing with arrays
View GitHub Profile
@its-kayes
its-kayes / multipleFormData.ts
Created November 15, 2023 12:36
Handling Multiple form Data.
import axios from "axios";
import React from "react";
const Index = () => {
const handleSubmit = async (e) => {
e.preventDefault();
const files = e.target.file.files;
const name = e.target.text.value;
const formData = new FormData();