• Lê Bảo Hồng Đức's avatar
    fix: Jodit uploader field name mismatch causing MulterError · 0fc799e4
    Lê Bảo Hồng Đức authored
    Jodit sends files as files[0], files[1], ... (from filesVariableName(i)
    returning `files[${i}]`), not files[] as previously assumed. The buildData
    callback only matched "files[]" so the actual file field was passed
    through as-is, triggering MulterError: Unexpected field because backend
    multer.single("file") only accepts a field named "file".
    
    Fix buildData to:
    - Match files[0], files[1], ... pattern and convert first file to "file"
    - Drop extra files (multer.single only accepts one)
    - Drop Jodit-internal fields (source, extension, mimetype) backend ignores
    
    Generated with [Devin](https://devin.ai)
    Co-Authored-By: 's avatarDevin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
    0fc799e4
Name
Last commit
Last update
..
admin-delete-dialog.tsx Loading commit data...
admin-row-actions.tsx Loading commit data...
admin-stats-grid.tsx Loading commit data...
admin-table-layout.tsx Loading commit data...
contact-management-detail-dialog.tsx Loading commit data...
image-picker.tsx Loading commit data...
member-form.tsx Loading commit data...
news-form.tsx Loading commit data...
post-content-editor.tsx Loading commit data...
post-history-viewer.tsx Loading commit data...
rich-text-editor.tsx Loading commit data...
safe-next-image.tsx Loading commit data...