Changes between Initial Version and Version 2 of Ticket #13518


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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13518

    • Property Version changed from 4.5.0 to 4.5.0 Beta
  • Ticket #13518 – Description

    initial v2  
    1 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.
     1It 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
     3fileTools.addUploadWidget( editor, 'sepiauploadimage', {
     4    additionalRequestParameters: { sepia: true },
     5
     6    // ...
     7} );
     8
     9Will 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