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. |
| 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. So for example: |
| 2 | |
| 3 | fileTools.addUploadWidget( editor, 'sepiauploadimage', { |
| 4 | additionalRequestParameters: { sepia: true }, |
| 5 | |
| 6 | // ... |
| 7 | } ); |
| 8 | |
| 9 | Will add `evt.data.additionalRequestParameters.sepia = true` to the `fileUploadRequest` and send it to the server (`formData.append( 'sepia', 'true');`). |