Opened 9 years ago

Last modified 8 years ago

#13518 closed New Feature

Request should be more flexible — at Version 2

Reported by: Piotr Jasiun Owned by:
Priority: Normal Milestone: CKEditor 4.6.0
Component: General Version: 4.5.0
Keywords: Cc:

Description (last modified by Piotr Jasiun)

It should be easy to add some additional parameters to the request. Parameters defined in the upload widget definition should be passed to the fileLoader, to the fileUploadRequest and finally to the request build by the default fileUploadRequest handler. So for example:

fileTools.addUploadWidget( editor, 'sepiauploadimage', {

additionalRequestParameters: { sepia: true },

...

} );

Will add evt.data.additionalRequestParameters.sepia = true to the fileUploadRequest and send it to the server (formData.append( 'sepia', 'true');).

Change History (2)

comment:1 Changed 9 years ago by Piotr Jasiun

Version: 4.5.04.5.0 Beta

comment:2 Changed 9 years ago by Piotr Jasiun

Description: modified (diff)
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy