Index: branches/new-upload/phase3/js2/mwEmbed/libAddMedia/mvFirefogg.js |
— | — | @@ -492,9 +492,12 @@ |
493 | 493 | js_log('done with encoding do POST upload:' + _this.editForm.action); |
494 | 494 | // ignore warnings & set source type |
495 | 495 | //_this.formData[ 'wpIgnoreWarning' ]='true'; |
496 | | - _this.formData[ 'wpSourceType' ] = 'file'; |
| 496 | + _this.formData[ 'wpSourceType' ] = 'upload'; |
497 | 497 | _this.formData[ 'action' ] = 'submit'; |
498 | | - |
| 498 | + //wpUploadFile is set by firefogg |
| 499 | + delete _this.formData[ 'wpUploadFile' ]; |
| 500 | + |
| 501 | + |
499 | 502 | _this.fogg.post( _this.editForm.action, 'wpUploadFile', JSON.stringify( _this.formData ) ); |
500 | 503 | //update upload status: |
501 | 504 | _this.doUploadStatus(); |