#19141·ckeditor5

It is recommended to add a custom form-data fieldName in uploadconfig.ts in the ckeditor5-upload package

Author: zcrkeyCreated Sep 23, 2025Updated Sep 23, 2026
Labelstype:improvementstatus:stale

Provide a description of the improvement

In practical business, it is often necessary to customize the field names of FormData files when uploading files. Although SimpleUploadAdapter can be rewritten, this requirement is quite common and requires support for custom configuration

How the feature works now and what you'd like to change?

The uploadconfig.ts file already contains the uploadUrl, headers, and withCredentials properties. I hope to add a custom FieldName for uploading files using FormData, which can be used for customization in the _sendRequest method of the simpleuploadadapter.ts file

const data = new FormData();
data.append( 'upload', file );  // data.append(this.options.fieldName, file )

Other details

  • CKEditor version: 46.1.1
Image