skip to Main Content

I made Laravel CRUD api and I can't upload an image

for several days I have problem uploading an image with Laravel api. I was sending request via React's modified axios. Code is as follows. axios-client.js import axios from "axios"; const axiosClient = axios.create({ baseURL : `${import.meta.env.VITE_API_BASE_URL}/api` }); axiosClient.interceptors.request.use((config) => {…

VIEW QUESTION

Javascript – FormData always empty

I have an html page with a form and a js script with a listener on a button. <html> <head> <script type="text/javascript" src="login.js" defer></script> </head> <body> <form id="form"> <table> <tr> <td>Username</td> <td><input type="text" id="user" value=""></td> </tr> <tr> <td>password</td> <td><input type="text"…

VIEW QUESTION
Back To Top
Search