79330859

Date: 2025-01-05 14:09:17
Score: 0.5
Natty:
Report link

I fix it by passing the id to ficheiro without the data field:

const fileIds = [
          ...existingFiles, // Manter os arquivos existentes
          ...uploadData.map((file) => ({
            titulo: file.name, // Nome do arquivo
            publico: true,
            ficheiro: {
              id: file.id, // ID do arquivo
            },
          })),
        ]
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Coyas