Send images with axios

you can put ! after filepath to assert that it is a non-null variable

        var formData = new FormData();
        formData.append('file',filepath!);
1 Like