Changes between Version 2 and Version 3 of Ticket #13518


Ignore:
Timestamp:
Jul 9, 2015, 12:35:00 PM (9 years ago)
Author:
Piotr Jasiun
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13518 – Description

    v2 v3  
    11It 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:
    2 
     2{{{
    33fileTools.addUploadWidget( editor, 'sepiauploadimage', {
    44    additionalRequestParameters: { sepia: true },
     
    66    // ...
    77} );
    8 
     8}}}
    99Will add `evt.data.additionalRequestParameters.sepia = true` to the `fileUploadRequest` and send it to the server (`formData.append( 'sepia', 'true');`).
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy