Custom Upload Parameters

Some parameters can be customized when uploading images, such as token which used to pass verification. These parameters will be added to formData, then the whole will be uploaded to the server.

editor.config.uploadImgParams = {
    token: 'xxxxx',
    x: 100

If you need to splice parameters into url, you can add the following configuration.

editor.config.uploadImgParamsWithUrl = true
Copyright © wangEditor (2020 - present) all right reserved,powered by GitbookFile Modify: 2022-04-11 06:40:29

results matching ""

    No results matching ""