File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -362,8 +362,13 @@ plugins.connectToAllDatabases().then(function() {
362
362
}
363
363
}
364
364
params . files = files ;
365
+ let formDataUrl = [ ] ;
365
366
for ( const i in fields ) {
366
367
params . qstring [ i ] = fields [ i ] ;
368
+ formDataUrl . push ( `${ i } =${ fields [ i ] } ` ) ;
369
+ }
370
+ if ( formDataUrl . length ) {
371
+ params . formDataUrl = formDataUrl . join ( '&' ) ;
367
372
}
368
373
if ( ! params . apiPath ) {
369
374
processRequest ( params ) ;
Original file line number Diff line number Diff line change @@ -3098,7 +3098,13 @@ const checksumSaltVerification = (params) => {
3098
3098
payloads . push ( params . href . substr ( params . fullPath . length + 1 ) ) ;
3099
3099
3100
3100
if ( params . req . method . toLowerCase ( ) === 'post' ) {
3101
- payloads . push ( params . req . body ) ;
3101
+ // Check if we have 'multipart/form-data'
3102
+ if ( params . formDataUrl ) {
3103
+ payloads . push ( params . formDataUrl ) ;
3104
+ }
3105
+ else {
3106
+ payloads . push ( params . req . body ) ;
3107
+ }
3102
3108
}
3103
3109
if ( typeof params . qstring . checksum !== "undefined" ) {
3104
3110
for ( let i = 0 ; i < payloads . length ; i ++ ) {
You can’t perform that action at this time.
0 commit comments