SimpleUploadConfig (upload/adapters)
@ckeditor/ckeditor5-upload/src/adapters/simpleuploadadapter
The configuration of the simple upload adapter.
See the "Simple upload adapter" guide to learn more.
Filtering
Properties
-
headers : Object.<String, String>
An object that defines additional headers sent with the request to the server during the upload. This is the right place to implement security mechanisms like authentication and CSRF protection.
Learn more about the server application requirements in the "Server-side configuration" section of the feature guide.
-
uploadUrl : String
The path (URL) to the server (application) which handles the file upload. When specified, enables the automatic upload of resources (images) inserted into the editor content.
Learn more about the server application requirements in the "Server-side configuration" section of the feature guide.
-
withCredentials : Boolean
This flag enables the
withCredentials
property of the request sent to the server during the upload. It affects cross-site requests only and, for instance, allows credentials such as cookies to be sent along with the request.Learn more about the server application requirements in the "Server-side configuration" section of the feature guide.
Defaults to
false
Every day, we work hard to keep our documentation complete. Have you spotted an outdated information? Is something missing? Please report it via our issue tracker.