If you are using React into your project then code will less.

function App() {
    const handleUploadImages = (e) => {
        const formData = new FormData()
        formData.append("file", e.target.files[0])

        fetch(`<your_coudinary_nocodeapi>`, {
            method: "POST",
            body: formData,
        })
            .then((images) => {
                console.log(images)
            })
            .catch((err) => {
                console.log(err)
            })
    }

    return (
        <div className="App">
            <input
                accept="image/*"
                id="imageInput"
                type="file"
                name="imageInput"
                onChange={handleUploadImages}
            />
        </div>
    )
}

Yes, That’s all. If you have any other use cases then let us know about that. So, we can make an blog post about that.

 Note:
If you are looking for Image Editing online for Free, try Adobe Editor