if this is the same question, i would suggest to remove one of them: https://laracasts.com/discuss/channels/general-discussion/data-with-file-input-not-sent-to-the-server
as from the official inertia documentation (https://inertiajs.com/file-uploads)
Multipart limitations Uploading files using a multipart/form-data request is not natively supported in some server-side frameworks when using the PUT,PATCH, or DELETE HTTP methods. The simplest workaround for this limitation is to simply upload files using a POST request instead.
However, some frameworks, such as Laravel and Rails, support form method spoofing, which allows you to upload the files using POST, but have the framework handle the request as a PUT or PATCH request. This is done by including a _method attribute in the data of your request.
import { router } from '@inertiajs/react'
router.post(`/users/${user.id}`, {
_method: 'put',
avatar: form.avatar,
})