Fixed Multer config .array from files to attachements
This commit is contained in:
@@ -2401,7 +2401,7 @@ function FpEditModal({ open, onClose, submission, queueItems, onSuccess }) {
|
|||||||
if (files.length === 0) return;
|
if (files.length === 0) return;
|
||||||
setSaving(true); setResult(null);
|
setSaving(true); setResult(null);
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
files.forEach(f => formData.append('files', f));
|
files.forEach(f => formData.append('attachments', f));
|
||||||
try {
|
try {
|
||||||
const res = await fetch(`${API_BASE}/ivanti/fp-workflow/submissions/${submission.id}/attachments`, {
|
const res = await fetch(`${API_BASE}/ivanti/fp-workflow/submissions/${submission.id}/attachments`, {
|
||||||
method: 'POST', credentials: 'include', body: formData,
|
method: 'POST', credentials: 'include', body: formData,
|
||||||
|
|||||||
Reference in New Issue
Block a user