Trying to send an File will result in the Request getting sent as JSON, because the code handling files is unreachable since the object condition is also true.
Also the content-type header needs to be removed so the fetch API can set the form-data type with correct boundaries otherwise there is an issue on the Server.
Trying to send an File will result in the Request getting sent as JSON, because the code handling files is unreachable since the object condition is also true. Also the content-type header needs to be removed so the fetch API can set the form-data type with correct boundaries otherwise there is an issue on the Server.