FormData File Field Name Settings

Release 2.2.3 and above.

Use the editor.import.fileFiledName, editor.upload.image.fileFiledName, editor.upload.video.fileFiledName, and editor.upload.file.fileFiledName keys to set the fieldName in formData for upload and import requests.

// synapeditor.config.js
{
    'editor.import.fileFieldName': 'file',
    'editor.upload.image.fileFieldName': 'file',
    'editor.upload.video.fileFieldName': 'file',
    'editor.upload.file.fileFieldName': 'file'
}

Related Features