Upload Images to plugin: users return 200 but don´t upload image

Guys, I’m able to get a 200 response when I upload, but I can’t see the image in the media library nor its association with the user that’s been created. Could you help me with that?

System Information
  • Strapi Version: v4
  • Operating System: ubuntu 22.04
  • Database: sqlite
  • Node Version: 18

Guys, 
  const handleFileChange = (e) => {
    const file = e.target.files[0];
    console.log("Arquivo selecionado:", file);
    setFormData({ ...formData, avatar: file });
  };
  const handleSubmit = async (event) => {
    event.preventDefault();

    try {
      const dataToSend = {
        data: {
       refId: user.id,
          ref: " plugin::users-permissions.user",
          // ref: "plugin::users_permissions_user",
          //ref: "api::user.user",
          field: "avatar",
          files: formData.avatar,
        },
      };

      console.log("Arquivo selecionado:", formData.avatar);
      console.log("Conteúdo de dataToSend:", dataToSend);

      const response = await axios.post(
        `http://localhost:1339/api/upload?id=${user.id}`,
        dataToSend,

        {
          headers: {
            Authorization: `Bearer ${jwtToken}`,
            "Content-Type": "multipart/form-data",
          },
        }
      );

      toast.success("Avatar atualizado com sucesso!");
    } catch (error) {
      console.error("Erro:", error); // Imprime o erro completo
      console.error("Número do erro:", error.response.status); // Imprime o número do erro
      toast.error("Erro ao enviar avatar. Por favor, tente novamente.");
    }
  };